mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
da0535e1ff
* Horizontal axes with center positions should have labels * Linting * Test updates * Increase the tolerance for one test
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": {
|
|
"position": "bottom",
|
|
"axis": "x",
|
|
"min": -100,
|
|
"max": 100,
|
|
"gridLines": {
|
|
"color": "red",
|
|
"drawOnChartArea": false
|
|
},
|
|
"ticks": {
|
|
"display": true
|
|
}
|
|
},
|
|
"y": {
|
|
"position": "center",
|
|
"axis": "y",
|
|
"min": -100,
|
|
"max": 100,
|
|
"gridLines": {
|
|
"color": "red",
|
|
"drawOnChartArea": false
|
|
},
|
|
"ticks": {
|
|
"display": true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"options": {
|
|
"canvas": {
|
|
"height": 256,
|
|
"width": 512
|
|
},
|
|
"spriteText": true
|
|
}
|
|
}
|