Chart.js/test/fixtures/core.scale/y-axis-position-dynamic.json

66 lines
1.6 KiB
JSON
Raw Normal View History

{
"config": {
"type": "scatter",
"data": {
"datasets": [{
"data": [{
"x": -20,
"y": -30
}, {
"x": 0,
"y": 0
}, {
"x": 20,
"y": 15
}]
}]
},
"options": {
"scales": {
"x": {
"position": "bottom",
"axis": "x",
"min": -100,
"max": 100,
"border": {
"color": "red"
},
"grid": {
"color": "red",
"drawOnChartArea": false
},
"ticks": {
"display": true
}
},
"y": {
"position": {
"x": -50
},
"axis": "y",
"min": -100,
"max": 100,
"border": {
"color": "red"
},
"grid": {
"color": "red",
"drawOnChartArea": false
},
"ticks": {
"display": true
}
}
}
}
},
"options": {
"canvas": {
"height": 256,
"width": 512
},
"spriteText": true
},
"tolerance": 0.01
}