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
37 lines
975 B
JSON
37 lines
975 B
JSON
{
|
|
"config": {
|
|
"type": "scatter",
|
|
"data": {
|
|
"datasets": [{
|
|
"borderColor": "red",
|
|
"data": [{"x":-5,"y":5},{"x":-4,"y":6},{"x":-3,"y":7},{"x":-2,"y":6},{"x":-1,"y":5},{"x":0,"y":4},{"x":1,"y":3},{"x":2,"y":2},{"x":3,"y":5},{"x":4,"y":7},{"x":5,"y":9}],
|
|
"fill": false,
|
|
"showLine": true,
|
|
"borderWidth": 20,
|
|
"pointRadius": 0
|
|
}]
|
|
},
|
|
"options": {
|
|
"responsive": false,
|
|
"scales": {
|
|
"x": {"ticks": {"display": false}},
|
|
"y": {
|
|
"max": 6,
|
|
"ticks": {
|
|
"display": false
|
|
}
|
|
}
|
|
},
|
|
"layout": {
|
|
"padding": 24
|
|
}
|
|
}
|
|
},
|
|
"options": {
|
|
"canvas": {
|
|
"height": 256,
|
|
"width": 512
|
|
}
|
|
}
|
|
}
|