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
126 lines
3.6 KiB
JSON
126 lines
3.6 KiB
JSON
{
|
|
"config": {
|
|
"type": "bubble",
|
|
"data": {
|
|
"datasets": [{
|
|
"data": [
|
|
{"x": 0, "y": 3},
|
|
{"x": 1, "y": 3},
|
|
{"x": 2, "y": 3},
|
|
{"x": 3, "y": 3},
|
|
{"x": 4, "y": 3},
|
|
{"x": 5, "y": 3},
|
|
{"x": 6, "y": 3},
|
|
{"x": 7, "y": 3},
|
|
{"x": 8, "y": 3},
|
|
{"x": 9, "y": 3}
|
|
],
|
|
"backgroundColor": "#00ff00",
|
|
"borderColor": "transparent",
|
|
"borderWidth": 0,
|
|
"pointStyle": [
|
|
"circle",
|
|
"cross",
|
|
"crossRot",
|
|
"dash",
|
|
"line",
|
|
"rect",
|
|
"rectRounded",
|
|
"rectRot",
|
|
"star",
|
|
"triangle"
|
|
]
|
|
}, {
|
|
"data": [
|
|
{"x": 0, "y": 2},
|
|
{"x": 1, "y": 2},
|
|
{"x": 2, "y": 2},
|
|
{"x": 3, "y": 2},
|
|
{"x": 4, "y": 2},
|
|
{"x": 5, "y": 2},
|
|
{"x": 6, "y": 2},
|
|
{"x": 7, "y": 2},
|
|
{"x": 8, "y": 2},
|
|
{"x": 9, "y": 2}
|
|
],
|
|
"backgroundColor": "transparent",
|
|
"borderColor": "#0000ff",
|
|
"borderWidth": 1,
|
|
"pointStyle": [
|
|
"circle",
|
|
"cross",
|
|
"crossRot",
|
|
"dash",
|
|
"line",
|
|
"rect",
|
|
"rectRounded",
|
|
"rectRot",
|
|
"star",
|
|
"triangle"
|
|
]
|
|
}, {
|
|
"data": [
|
|
{"x": 0, "y": 1},
|
|
{"x": 1, "y": 1},
|
|
{"x": 2, "y": 1},
|
|
{"x": 3, "y": 1},
|
|
{"x": 4, "y": 1},
|
|
{"x": 5, "y": 1},
|
|
{"x": 6, "y": 1},
|
|
{"x": 7, "y": 1},
|
|
{"x": 8, "y": 1},
|
|
{"x": 9, "y": 1}
|
|
],
|
|
"backgroundColor": "#00ff00",
|
|
"borderColor": "#0000ff",
|
|
"borderWidth": 1,
|
|
"pointStyle": [
|
|
"circle",
|
|
"cross",
|
|
"crossRot",
|
|
"dash",
|
|
"line",
|
|
"rect",
|
|
"rectRounded",
|
|
"rectRot",
|
|
"star",
|
|
"triangle"
|
|
]
|
|
}]
|
|
},
|
|
"options": {
|
|
"responsive": false,
|
|
"scales": {
|
|
"x": {"display": false},
|
|
"y": {
|
|
"display": false,
|
|
"min": 0,
|
|
"max": 4
|
|
}
|
|
},
|
|
"elements": {
|
|
"line": {
|
|
"borderColor": "transparent",
|
|
"borderWidth": 1,
|
|
"fill": false
|
|
},
|
|
"point": {
|
|
"radius": 16
|
|
}
|
|
},
|
|
"layout": {
|
|
"padding": {
|
|
"left": 24,
|
|
"right": 24
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"options": {
|
|
"canvas": {
|
|
"height": 256,
|
|
"width": 512
|
|
}
|
|
}
|
|
}
|