mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
56 lines
1.6 KiB
JSON
56 lines
1.6 KiB
JSON
|
{
|
||
|
"config": {
|
||
|
"type": "bar",
|
||
|
"data": {
|
||
|
"labels": ["January", "February", "March", "April", "May", "June", "July"],
|
||
|
"datasets": []
|
||
|
},
|
||
|
"options": {
|
||
|
"indexAxis": "y",
|
||
|
"scales": {
|
||
|
"x": {
|
||
|
"type": "category",
|
||
|
"position": "top",
|
||
|
"id": "x-axis-1",
|
||
|
"ticks": {
|
||
|
"display": false
|
||
|
},
|
||
|
"gridLines":{
|
||
|
"drawOnChartArea": false,
|
||
|
"drawBorder": false,
|
||
|
"color": "rgba(0, 0, 0, 1)",
|
||
|
"width": 1,
|
||
|
"tickColor": "rgba(255, 0, 0, 1)",
|
||
|
"tickWidth": 5
|
||
|
}
|
||
|
},
|
||
|
"y": {
|
||
|
"position": "left",
|
||
|
"id": "y-axis-1",
|
||
|
"type": "linear",
|
||
|
"offset": false,
|
||
|
"min": -100,
|
||
|
"max": 100,
|
||
|
"ticks": {
|
||
|
"display": false
|
||
|
},
|
||
|
"gridLines":{
|
||
|
"offsetGridLines": false,
|
||
|
"drawOnChartArea": false,
|
||
|
"drawBorder": false,
|
||
|
"color": "rgba(0, 0, 0, 1)",
|
||
|
"tickColor": "rgba(255, 0, 0, 1)",
|
||
|
"tickWidth": 5
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"options": {
|
||
|
"canvas": {
|
||
|
"height": 256,
|
||
|
"width": 512
|
||
|
}
|
||
|
}
|
||
|
}
|