Content deleted Content added
Graph 2 Tags: Reverted Visual edit Disambiguation links added |
grapho Tags: Reverted Visual edit |
||
Line 159:
|0
|}
=== Payout ===
'''Correct'''<graph>{
"version": 2,
"width": 400,
Line 168 ⟶ 170:
"values": [
{
"x":
"y": 1
},
{
"x": 2,
"y": 2
},
{
"x": 3,
"y": 4
},
{
"x": 4,
"y": 8
},
{
"x": 5,
"y": 16
}
]
}
],
"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
},
"fill": {
"value": "steelblue"
},
"interpolate": {
"value": "monotone"
}
}
}
}
]
}</graph><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>'''Wrong'''<graph>{
"version": 2,
"width": 400,
"height": 200,
"data": [
{
"name": "table",
"values": [
{
"x": 1,
"y": 1
},
{
"x": 2,
"y": 2
},
{
"x": 3,
"y": 3
},
{
"x": 4,
"y": 4
},
{
"x": 5,
"y": 5
}
]
}
],
"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><graph>{
"version": 2,
"width": 400,
"height": 200,
"data": [
{
"name": "table",
"values": [
{
"x": 1,
"y": 1
},
{
Line 181 ⟶ 462:
{
"x": 3,
"y": 3
},
{
"x": 4,
"y": 4
},
{
"x": 5,
"y": 5
}
]
|