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
39 lines
965 B
JSON
39 lines
965 B
JSON
{
|
|
"config": {
|
|
"type": "bar",
|
|
"data": {
|
|
"labels": ["2016", "2018", "2020", "2024", "2030"],
|
|
"datasets": [{
|
|
"backgroundColor": "#FF6384",
|
|
"data": [1, null, 3, 4, 5]
|
|
}, {
|
|
"backgroundColor": "#36A2EB",
|
|
"data": [5, 4, 3, null, 1]
|
|
}, {
|
|
"backgroundColor": "#FFCE56",
|
|
"data": [3, 5, 2, null, 4]
|
|
}]
|
|
},
|
|
"options": {
|
|
"responsive": false,
|
|
"scales": {
|
|
"x": {
|
|
"display": false,
|
|
"stacked": true
|
|
},
|
|
"y": {
|
|
"display": false,
|
|
"stacked": true,
|
|
"beginAtZero": true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"options": {
|
|
"canvas": {
|
|
"height": 256,
|
|
"width": 512
|
|
}
|
|
}
|
|
}
|