mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
59a1af91ac
* Replace horizontalBar with indexAxis: 'y' * Fix drawing of line for last x-position * Consistently determine axis of scale * Add test
43 lines
1.0 KiB
JSON
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
|
|
}
|
|
}
|
|
}
|