Chart.js/test/fixtures/controller.bar/bar-thickness-flex.json
Jukka Kurkela 7f97adf5a0 Move scale defining options up from ticks (#6738)
* Move scale defining options up from `ticks`
* Include `ticks.reverse` in v3-migration
2019-11-15 12:11:13 -05:00

43 lines
1.1 KiB
JSON

{
"config": {
"type": "bar",
"data": {
"labels": ["2017", "2018", "2020", "2024", "2038"],
"datasets": [{
"backgroundColor": "#FF6384",
"barPercentage": 1,
"categoryPercentage": 1,
"barThickness": "flex",
"data": [1, null, 3, 4, 5]
}]
},
"options": {
"responsive": false,
"legend": false,
"title": false,
"scales": {
"xAxes": [{
"type": "time",
"display": false,
"time": {
"parser": "YYYY"
},
"ticks": {
"source": "labels"
}
}],
"yAxes": [{
"display": false,
"beginAtZero": true
}]
}
}
},
"options": {
"canvas": {
"height": 256,
"width": 512
}
}
}