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
55 lines
1.5 KiB
JSON
55 lines
1.5 KiB
JSON
{
|
|
"config": {
|
|
"type": "line",
|
|
"data": {
|
|
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
|
|
"datasets": [{
|
|
"backgroundColor": "rgba(0, 0, 192, 0.25)",
|
|
"data": [null, null, 2, 4, 2, 1, -1, 1, 2]
|
|
}, {
|
|
"backgroundColor": "rgba(0, 192, 0, 0.25)",
|
|
"data": [4, 2, null, 3, 2.5, null, -2, 1.5, 3]
|
|
}, {
|
|
"backgroundColor": "rgba(192, 0, 0, 0.25)",
|
|
"data": [3.5, 2, 1, 2.5, -2, 3, -1, null, null]
|
|
}, {
|
|
"backgroundColor": "rgba(128, 0, 128, 0.25)",
|
|
"data": [5, 6, 5, -2, -4, -3, 4, 2, 4.5]
|
|
}]
|
|
},
|
|
"options": {
|
|
"responsive": false,
|
|
"spanGaps": false,
|
|
"scales": {
|
|
"x": {
|
|
"display": false
|
|
},
|
|
"y": {
|
|
"display": false
|
|
}
|
|
},
|
|
"elements": {
|
|
"point": {
|
|
"radius": 0
|
|
},
|
|
"line": {
|
|
"cubicInterpolationMode": "monotone",
|
|
"borderColor": "transparent",
|
|
"fill": "origin"
|
|
}
|
|
},
|
|
"plugins": {
|
|
"legend": false,
|
|
"title": false,
|
|
"tooltip": false
|
|
}
|
|
}
|
|
},
|
|
"options": {
|
|
"canvas": {
|
|
"height": 256,
|
|
"width": 512
|
|
}
|
|
}
|
|
}
|