Chart.js/test/fixtures/controller.bar/bar-thickness-per-dataset.json
Ben McCann 9ff1c845f2 Bar options should not be defined on scale (#6249)
* Bar options should not be defined on scale

* Improve minimization

* Add tests

* Multiple datasets in test
2019-10-25 12:17:41 -04:00

49 lines
1.3 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]
}]
},
"options": {
"responsive": false,
"legend": false,
"title": false,
"scales": {
"xAxes": [{
"type": "time",
"offset": true,
"display": false,
"time": {
"parser": "YYYY"
},
"ticks": {
"source": "labels"
}
}],
"yAxes": [{
"display": false,
"ticks": {
"beginAtZero": true
}
}]
}
}
},
"options": {
"canvas": {
"height": 256,
"width": 512
}
}
}