2019-11-10 23:41:01 +01:00
|
|
|
{
|
|
|
|
"config": {
|
|
|
|
"type": "scatter",
|
|
|
|
"data": {
|
|
|
|
"datasets": [
|
|
|
|
{
|
|
|
|
"showLine": true,
|
|
|
|
"borderColor": "red",
|
|
|
|
"data": [{"x":-4,"y":-4},{"x":4,"y":4}],
|
|
|
|
"clip": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"showLine": true,
|
|
|
|
"borderColor": "green",
|
|
|
|
"data": [{"x":-4,"y":-5},{"x":4,"y":3}],
|
|
|
|
"clip": 5
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"showLine": true,
|
|
|
|
"borderColor": "blue",
|
|
|
|
"data": [{"x":-4,"y":-3},{"x":4,"y":5}],
|
|
|
|
"clip": -5
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"showLine": true,
|
|
|
|
"borderColor": "brown",
|
|
|
|
"data": [{"x":-3,"y":-3},{"x":-1,"y":3},{"x":1,"y":-2},{"x":2,"y":3}],
|
|
|
|
"clip": {
|
|
|
|
"top": 8,
|
|
|
|
"left": false,
|
|
|
|
"right": -20,
|
|
|
|
"bottom": -20
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"options": {
|
|
|
|
"responsive": false,
|
|
|
|
"scales": {
|
2019-11-22 00:46:49 +01:00
|
|
|
"x": {
|
2019-11-15 18:11:13 +01:00
|
|
|
"min": -2,
|
|
|
|
"max": 2,
|
2019-11-10 23:41:01 +01:00
|
|
|
"ticks": {
|
|
|
|
"display": false
|
|
|
|
}
|
2019-11-22 00:46:49 +01:00
|
|
|
},
|
|
|
|
"y": {
|
2019-11-15 18:11:13 +01:00
|
|
|
"min": -2,
|
|
|
|
"max": 2,
|
2019-11-10 23:41:01 +01:00
|
|
|
"ticks": {
|
|
|
|
"display": false
|
|
|
|
}
|
2019-11-22 00:46:49 +01:00
|
|
|
}
|
2019-11-10 23:41:01 +01:00
|
|
|
},
|
|
|
|
"layout": {
|
|
|
|
"padding": 24
|
|
|
|
},
|
|
|
|
"elements": {
|
|
|
|
"line": {
|
|
|
|
"fill": false,
|
|
|
|
"borderWidth": 20
|
|
|
|
},
|
|
|
|
"point": {
|
|
|
|
"radius": 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"options": {
|
|
|
|
"canvas": {
|
|
|
|
"height": 256,
|
|
|
|
"width": 512
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|