Chart.js/test/fixtures/core.scale/cartesian-axis-border-settings.json
Evert Timberg 4ab6d7cc2a
Enable override settings for the axis border (#6883)
* 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
2020-01-03 13:55:50 -05:00

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
}
}
}