mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 04:39:06 +02:00
11ef1e5e89
Versatile clipping algorithm for different chart types
40 lines
1.1 KiB
JSON
40 lines
1.1 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,
|
|
"max": 6,
|
|
"display": false
|
|
}
|
|
}]
|
|
},
|
|
"layout": {
|
|
"padding": 24
|
|
}
|
|
}
|
|
},
|
|
"options": {
|
|
"canvas": {
|
|
"height": 256,
|
|
"width": 512
|
|
}
|
|
}
|
|
}
|