mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 12:49:07 +02:00
39 lines
1.0 KiB
JSON
39 lines
1.0 KiB
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,
|
||
|
"legend": false,
|
||
|
"title": false,
|
||
|
"scales": {
|
||
|
"xAxes": [{"ticks": {"display": false}}],
|
||
|
"yAxes": [{
|
||
|
"ticks": {
|
||
|
"min": 2,
|
||
|
"display": false
|
||
|
}
|
||
|
}]
|
||
|
},
|
||
|
"layout": {
|
||
|
"padding": 24
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"options": {
|
||
|
"canvas": {
|
||
|
"height": 256,
|
||
|
"width": 512
|
||
|
}
|
||
|
}
|
||
|
}
|