mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
4ab6d7cc2a
* Enable override settings for the axis border - #4041 Adds two new options to the cartesian axis: `borderColor` and `borderWidth` which are used to control the border drawn at the edge of the axis area. If these options are not set, the first grid line settings are used. * Correct spelling
59 lines
1.5 KiB
JSON
59 lines
1.5 KiB
JSON
{
|
|
"config": {
|
|
"type": "scatter",
|
|
"data": {
|
|
"datasets": [{
|
|
"data": [{
|
|
"x": -20,
|
|
"y": -30
|
|
}, {
|
|
"x": 0,
|
|
"y": 0
|
|
}, {
|
|
"x": 20,
|
|
"y": 15
|
|
}]
|
|
}]
|
|
},
|
|
"options": {
|
|
"legend": false,
|
|
"title": false,
|
|
"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
|
|
}
|
|
}
|
|
}
|