Chart.js/test/fixtures/controller.bar/bar-thickness-per-dataset-stacked.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

54 lines
1.4 KiB
JSON

{
"config": {
"data": {
"labels": ["2016", "2018", "2020", "2024", "2030"],
"datasets": [{
"type": "bar",
"barThickness": 16,
"backgroundColor": "#FF6384",
"data": [1, null, 3, 4, 5]
}, {
"type": "bar",
"barThickness": 8,
"backgroundColor": "#36A2EB",
"data": [5, 4, 3, null, 1]
}, {
"type": "bar",
"barThickness": 4,
"backgroundColor": "#FFCE56",
"data": [3, 5, 2, null, 4]
}]
},
"options": {
"responsive": false,
"legend": false,
"title": false,
"scales": {
"x": {
"type": "time",
"offset": true,
"stacked": true,
"display": false,
"time": {
"parser": "YYYY"
},
"ticks": {
"source": "labels"
}
},
"y": {
"display": false,
"stacked": true,
"beginAtZero": true
}
}
}
},
"options": {
"canvas": {
"height": 256,
"width": 512
}
}
}