Chart.js/test/fixtures/core.scale/tick-drawing.json
Jukka Kurkela ce74eb76a1 Convert axis options from arrays to objects (#6773)
* Convert axis options from arrays to objects

* Updated all chart type defaults
* Throw errors when axis type or position are not specified
* Avoid raising unnecessary errors when merging options into the default configs

* Fix additional tests

* Ensure scale defaults are set if type is not explicitly defined

* Another step

* Include `scale` as `firstIDs.r`

* update docs

* Update for buildOrUpdateScales

* Update migration guide

* Add test back
2019-11-21 18:46:49 -05:00

80 lines
2.4 KiB
JSON

{
"config": {
"type": "horizontalBar",
"data": {
"labels": ["January", "February", "March", "April", "May", "June", "July"],
"datasets": []
},
"options": {
"legend": false,
"title": false,
"scales": {
"x": {
"type": "category",
"position": "top",
"id": "x-axis-1",
"ticks": {
"display": false
},
"gridLines":{
"drawOnChartArea": false,
"drawBorder": false,
"color": "rgba(0, 0, 0, 1)"
}
},
"x2": {
"type": "category",
"position": "bottom",
"ticks": {
"display": false
},
"gridLines":{
"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
},
"gridLines":{
"offsetGridLines": 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
},
"gridLines":{
"offsetGridLines": false,
"drawOnChartArea": false,
"drawBorder": false,
"color": "rgba(0, 0, 0, 1)"
}
}
}
}
},
"options": {
"canvas": {
"height": 256,
"width": 512
}
}
}