1๐
โ
Youโll need to enable the gridLines
on both xAxes
and yAxes
, but disable the drawOnchartArea
:
xAxes: [{
ticks: {
min: 1,
max: 99,
},
gridLines: {
color: 'red',
display: true,
drawBorder: true,
drawOnChartArea: false
},
}],
yAxes: [{
gridLines: {
color: 'red',
display: true,
drawBorder: true,
drawOnChartArea: false
}
}]
1๐
try below, you need to keep the lines but hide them in the chart area.
This you can do by drawOnChartArea: false, see this documentation
gridLines: {
drawBorder:true,
drawOnChartArea: false,
color: 'red',
display: true,
zeroLineColor: 'red'
},
hope this helps.
Source:stackexchange.com