mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
021561072b
Disabling all plugins when options.plugins = false
41 lines
1020 B
JSON
41 lines
1020 B
JSON
{
|
|
"config": {
|
|
"type": "bar",
|
|
"data": {
|
|
"labels": ["2016", "2018", "2020", "2024", "2030"],
|
|
"datasets": [{
|
|
"backgroundColor": "#FF6384",
|
|
"barPercentage": 1,
|
|
"categoryPercentage": 1,
|
|
"data": [1, null, 3, 4, 5]
|
|
}]
|
|
},
|
|
"options": {
|
|
"responsive": false,
|
|
"scales": {
|
|
"x": {
|
|
"type": "time",
|
|
"display": false,
|
|
"offset": false,
|
|
"time": {
|
|
"parser": "YYYY"
|
|
},
|
|
"ticks": {
|
|
"source": "labels"
|
|
}
|
|
},
|
|
"y": {
|
|
"display": false,
|
|
"beginAtZero": true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"options": {
|
|
"canvas": {
|
|
"height": 256,
|
|
"width": 512
|
|
}
|
|
}
|
|
}
|