Chart.js/test/fixtures/core.scale/tick-drawing.json
Evert Timberg 6ac89cbb25
Rename scale gridLines options to be clearer (#8628)
* Rename `options.gridLines` to `options.grid`

* Rename `offsetGridLines` to `offset`
2021-03-13 19:49:09 +02:00

79 lines
2.3 KiB
JSON

{
"config": {
"type": "bar",
"data": {
"labels": ["January", "February", "March", "April", "May", "June", "July"],
"datasets": []
},
"options": {
"indexAxis": "y",
"scales": {
"x": {
"type": "category",
"position": "top",
"id": "x-axis-1",
"ticks": {
"display": false
},
"grid":{
"drawOnChartArea": false,
"drawBorder": false,
"color": "rgba(0, 0, 0, 1)"
}
},
"x2": {
"type": "category",
"position": "bottom",
"ticks": {
"display": false
},
"grid":{
"drawOnChartArea": false,
"drawBorder": false,
"color": "rgba(0, 0, 0, 1)"
}
},
"y": {
"position": "left",
"id": "y-axis-1",
"type": "linear",
"offset": false,
"min": -100,
"max": 100,
"ticks": {
"display": false
},
"grid":{
"offset": false,
"drawOnChartArea": false,
"drawBorder": false,
"color": "rgba(0, 0, 0, 1)"
}
},
"y2": {
"type": "linear",
"position": "right",
"offset": false,
"min": 0,
"max": 50,
"ticks": {
"display": false
},
"grid":{
"offset": false,
"drawOnChartArea": false,
"drawBorder": false,
"color": "rgba(0, 0, 0, 1)"
}
}
}
}
},
"options": {
"canvas": {
"height": 256,
"width": 512
}
}
}