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
42 lines
1.0 KiB
JSON
42 lines
1.0 KiB
JSON
{
|
|
"config": {
|
|
"type": "bar",
|
|
"data": {
|
|
"labels": ["2016", "2018", "2020", "2024", "2030"],
|
|
"datasets": [{
|
|
"barPercentage": 1,
|
|
"categoryPercentage": 1,
|
|
"backgroundColor": "#FF6384",
|
|
"data": [1]
|
|
}]
|
|
},
|
|
"options": {
|
|
"responsive": false,
|
|
"scales": {
|
|
"x": {
|
|
"type": "time",
|
|
"display": false,
|
|
"offset": false,
|
|
"time": {
|
|
"parser": "YYYY"
|
|
},
|
|
"min": "2013",
|
|
"ticks": {
|
|
"source": "labels"
|
|
}
|
|
},
|
|
"y": {
|
|
"display": false,
|
|
"beginAtZero": true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"options": {
|
|
"canvas": {
|
|
"height": 256,
|
|
"width": 512
|
|
}
|
|
}
|
|
}
|