Chart.js/test/fixtures/core.scale/x-axis-position-center.json
Jukka Kurkela e1ddaa8992
Dissociate border options from grid options (#8823)
* Dissociate border options from grid options
* Update docs
2021-04-04 14:19:07 -04:00

59 lines
1.5 KiB
JSON

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