Chart.js/test/fixtures/core.scale/label-offset-vertical-axes.json
Jukka Kurkela 59a1af91ac
Replace horizontalBar with indexAxis: 'y' (#7514)
* Replace horizontalBar with indexAxis: 'y'
* Fix drawing of line for last x-position
* Consistently determine axis of scale
* Add test
2020-06-18 17:35:52 -04:00

43 lines
1.0 KiB
JSON

{
"config": {
"type": "bar",
"data": {
"labels": ["\u25C0", "\u25A0", "\u25C6", "\u25CF"],
"datasets": [{
"data": [12, 19, 3, 5]
}]
},
"options": {
"legend": false,
"title": false,
"indexAxis": "y",
"scales": {
"x": {
"ticks": {
"display": false
},
"gridLines":{
"display": false,
"drawBorder": false
}
},
"y": {
"ticks": {
"labelOffset": 25
},
"gridLines":{
"display": false,
"drawBorder": false
}
}
}
}
},
"options": {
"canvas": {
"height": 256,
"width": 512
}
}
}