mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
57 lines
1.4 KiB
JSON
57 lines
1.4 KiB
JSON
|
{
|
||
|
"config": {
|
||
|
"type": "scatter",
|
||
|
"data": {
|
||
|
"datasets": [{
|
||
|
"data": [{
|
||
|
"x": -20,
|
||
|
"y": -30
|
||
|
}, {
|
||
|
"x": 0,
|
||
|
"y": 0
|
||
|
}, {
|
||
|
"x": 20,
|
||
|
"y": 15
|
||
|
}]
|
||
|
}]
|
||
|
},
|
||
|
"options": {
|
||
|
"scales": {
|
||
|
"x": {
|
||
|
"axis": "x",
|
||
|
"min": -100,
|
||
|
"max": 100,
|
||
|
"gridLines": {
|
||
|
"borderColor": "blue",
|
||
|
"borderWidth": 5,
|
||
|
"color": "red",
|
||
|
"drawBorder": true,
|
||
|
"drawOnChartArea": false
|
||
|
},
|
||
|
"ticks": {
|
||
|
"display": false
|
||
|
}
|
||
|
},
|
||
|
"y": {
|
||
|
"axis": "y",
|
||
|
"min": -100,
|
||
|
"max": 100,
|
||
|
"gridLines": {
|
||
|
"color": "red",
|
||
|
"drawOnChartArea": false
|
||
|
},
|
||
|
"ticks": {
|
||
|
"display": false
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"options": {
|
||
|
"canvas": {
|
||
|
"height": 256,
|
||
|
"width": 512
|
||
|
}
|
||
|
}
|
||
|
}
|