2019-11-21 19:48:31 +01:00
|
|
|
{
|
|
|
|
"config": {
|
|
|
|
"type": "line",
|
|
|
|
"data": {
|
|
|
|
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
|
|
|
|
"datasets": [{
|
|
|
|
"backgroundColor": "rgba(255, 0, 0, 0.25)",
|
|
|
|
"data": [null, null, 0, -1, 0, 1, 0, -1, 0],
|
|
|
|
"fill": {
|
|
|
|
"target": 1,
|
|
|
|
"above": "rgba(255, 0, 0, 0.25)",
|
|
|
|
"below": "rgba(122, 0, 0, 0.25)"
|
|
|
|
}
|
|
|
|
}, {
|
|
|
|
"backgroundColor": "rgba(0, 255, 0, 0.25)",
|
|
|
|
"data": [1, 0, null, 1, 0, null, -1, 0, 1],
|
|
|
|
"fill": {
|
|
|
|
"target": "+1",
|
|
|
|
"above": "rgba(0, 255, 0, 0.25)",
|
|
|
|
"below": "rgba(0, 255, 120, 0.25)"
|
|
|
|
}
|
|
|
|
}, {
|
|
|
|
"backgroundColor": "rgba(255, 0, 255, 0.25)",
|
|
|
|
"data": [2, 0, -2, 0, 2, 0, -2, 0, 2],
|
|
|
|
"fill": {
|
|
|
|
"target": "-2",
|
|
|
|
"above": "rgba(255, 0, 255, 0.25)",
|
|
|
|
"below": "rgba(255, 0, 120, 0.25)"
|
|
|
|
}
|
|
|
|
}, {
|
|
|
|
"backgroundColor": "rgba(255, 255, 0, 0.25)",
|
|
|
|
"data": [3, 1, -1, -3, -1, 1, 3, 1, -1],
|
|
|
|
"fill": {
|
|
|
|
"target": "-1",
|
|
|
|
"above": "rgba(255, 255, 0, 0.25)",
|
|
|
|
"below": "rgba(255, 120, 0, 0.25)"
|
|
|
|
}
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
"options": {
|
|
|
|
"responsive": false,
|
|
|
|
"spanGaps": true,
|
|
|
|
"scales": {
|
2019-11-22 13:28:31 +01:00
|
|
|
"x": {
|
2019-11-21 19:48:31 +01:00
|
|
|
"display": false
|
2019-11-22 13:28:31 +01:00
|
|
|
},
|
|
|
|
"y": {
|
2019-11-21 19:48:31 +01:00
|
|
|
"display": false
|
2019-11-22 13:28:31 +01:00
|
|
|
}
|
2019-11-21 19:48:31 +01:00
|
|
|
},
|
|
|
|
"elements": {
|
|
|
|
"point": {
|
|
|
|
"radius": 0
|
|
|
|
},
|
|
|
|
"line": {
|
|
|
|
"cubicInterpolationMode": "monotone",
|
|
|
|
"borderColor": "transparent",
|
|
|
|
"tension": 0
|
|
|
|
}
|
2020-11-23 23:58:03 +01:00
|
|
|
},
|
|
|
|
"plugins": {
|
|
|
|
"legend": false,
|
|
|
|
"title": false,
|
|
|
|
"tooltip": false
|
2019-11-21 19:48:31 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"options": {
|
|
|
|
"canvas": {
|
|
|
|
"height": 256,
|
|
|
|
"width": 512
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|