Chart.js/test/fixtures/core.scale/y-axis-position-dynamic.json
Evert Timberg 374b7491a3
Allow axes to be centered on the chart area (#6818)
Allow axes to be centered on the chart area or at a dynamic position based on another axis
2019-12-16 18:17:42 -05:00

60 lines
1.5 KiB
JSON

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