Graph: Difference between revisions

Content deleted Content added
m Reverted 1 edit by 52.144.111.67 (talk) to last revision by Serols
Graph
Tags: Reverted Visual edit
Line 3:
{{Self reference|For information about graphs on Wikipedia, see [[Wikipedia:Graphs and charts]]. For how to create a graph using Wikitext see [[Help:Graph]].}}
'''Graph''' may refer to:
{{TOC right}}
 
==Mathematics General ==
 
=== Payout graph ===
{| class="wikitable sortable"
|+
!Payout
!Days
|-
|16
|5
|-
|8
|4
|-
|4
|3
|-
|2
|2
|-
|1
|1
|}
<graph>{
"version": 2,
"width": 400,
"height": 200,
"data": [
{
"name": "table",
"values": [
{
"x": 1,
"y": 1
},
{
"x": 2,
"y": 2
},
{
"x": 3,
"y": 4
},
{
"x": 4,
"y": 8
},
{
"x": 5,
"y": 16
}
]
}
],
"scales": [
{
"name": "x",
"type": "ordinal",
"range": "width",
"zero": false,
"___domain": {
"data": "table",
"field": "x"
}
},
{
"name": "y",
"type": "linear",
"range": "height",
"nice": true,
"___domain": {
"data": "table",
"field": "y"
}
}
],
"axes": [
{
"type": "x",
"scale": "x"
},
{
"type": "y",
"scale": "y"
}
],
"marks": [
{
"type": "rect",
"from": {
"data": "table"
},
"properties": {
"enter": {
"x": {
"scale": "x",
"field": "x"
},
"y": {
"scale": "y",
"field": "y"
},
"y2": {
"scale": "y",
"value": 0
},
"fill": {
"value": "steelblue"
},
"width": {
"scale": "x",
"band": "true",
"offset": -1
}
}
}
}
]
}</graph>
 
=== Basic graph ===
{| class="wikitable sortable"
|+
!Value (x)
!Value (y)
|-
|1
|0
|-
|3
|1
|-
|2
|2
|-
|4
|3
|}
<graph>{
"version": 2,
"width": 400,
"height": 200,
"data": [
{
"name": "table",
"values": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 3
},
{
"x": 2,
"y": 2
},
{
"x": 3,
"y": 4
}
]
}
],
"scales": [
{
"name": "x",
"type": "linear",
"range": "width",
"zero": false,
"___domain": {
"data": "table",
"field": "x"
}
},
{
"name": "y",
"type": "linear",
"range": "height",
"nice": true,
"___domain": {
"data": "table",
"field": "y"
}
}
],
"axes": [
{
"type": "x",
"scale": "x"
},
{
"type": "y",
"scale": "y"
}
],
"marks": [
{
"type": "area",
"from": {
"data": "table"
},
"properties": {
"enter": {
"x": {
"scale": "x",
"field": "x"
},
"y": {
"scale": "y",
"field": "y"
},
"y2": {
"scale": "y",
"value": 0
},
"interpolate": {
"value": "monotone"
},
"fill": {
"value": "steelblue"
}
}
}
}
]
}</graph>{{TOC right}}
 
== Mathematics ==
*[[Graph (discrete mathematics)]], a structure made of vertices and edges
**[[Graph theory]], the study of such graphs and their properties