mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
3eb947719e
* put borderOpts in own object * document z option * remove todo and change scaleId to id * update some tests * clean bit, remove console log * fix failing test * lint * Remove comment
87 lines
2.5 KiB
JSON
87 lines
2.5 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
|
|
},
|
|
"border": {
|
|
"display": false
|
|
},
|
|
"grid":{
|
|
"drawOnChartArea": false,
|
|
"color": "rgba(0, 0, 0, 1)"
|
|
}
|
|
},
|
|
"x2": {
|
|
"type": "category",
|
|
"position": "bottom",
|
|
"ticks": {
|
|
"display": false
|
|
},
|
|
"border": {
|
|
"display": false
|
|
},
|
|
"grid":{
|
|
"drawOnChartArea": false,
|
|
"color": "rgba(0, 0, 0, 1)"
|
|
}
|
|
},
|
|
"y": {
|
|
"position": "left",
|
|
"id": "y-axis-1",
|
|
"type": "linear",
|
|
"offset": false,
|
|
"min": -100,
|
|
"max": 100,
|
|
"ticks": {
|
|
"display": false
|
|
},
|
|
"border": {
|
|
"display": false
|
|
},
|
|
"grid":{
|
|
"offset": false,
|
|
"drawOnChartArea": false,
|
|
"color": "rgba(0, 0, 0, 1)"
|
|
}
|
|
},
|
|
"y2": {
|
|
"type": "linear",
|
|
"position": "right",
|
|
"offset": false,
|
|
"min": 0,
|
|
"max": 50,
|
|
"ticks": {
|
|
"display": false
|
|
},
|
|
"border": {
|
|
"display": false
|
|
},
|
|
"grid":{
|
|
"offset": false,
|
|
"drawOnChartArea": false,
|
|
"color": "rgba(0, 0, 0, 1)"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"options": {
|
|
"canvas": {
|
|
"height": 256,
|
|
"width": 512
|
|
}
|
|
}
|
|
}
|