mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
43 lines
1.0 KiB
JSON
43 lines
1.0 KiB
JSON
{
|
|
"config": {
|
|
"type": "line",
|
|
"data": {
|
|
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
|
|
"datasets": [{
|
|
"backgroundColor": "rgba(255, 0, 0, 0.25)",
|
|
"data": [-4, 4, 0, -1, 0, 1, 0, -1, 0],
|
|
"fill": { "value": 2 }
|
|
}]
|
|
},
|
|
"options": {
|
|
"responsive": false,
|
|
"spanGaps": false,
|
|
"legend": false,
|
|
"title": false,
|
|
"scales": {
|
|
"x": {
|
|
"display": false
|
|
},
|
|
"y": {
|
|
"display": false
|
|
}
|
|
},
|
|
"elements": {
|
|
"point": {
|
|
"radius": 0
|
|
},
|
|
"line": {
|
|
"borderColor": "transparent",
|
|
"tension": 0
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"options": {
|
|
"canvas": {
|
|
"height": 256,
|
|
"width": 512
|
|
}
|
|
}
|
|
}
|