Hi, I try to remove the vertical line with this code but didn't work. Anyone have some suggestion ? Thanks
Code:
<LineExample options={{
scaleShowGridLines : false,
scaleShowVerticalLines: false,
}}/>

you can remove the vertical lines by setting display: false in inside xAxes property.
options={
scales: {
yAxes: [
{ ... },
],
xAxes: [
{
gridLines: {
color: '#aaa',
borderDash: [1, 3],
},
display: false, // this will hide vertical lines
},
],
},
}
I hope this helps.
Awesome, thankss it worked @jmariomejiap
Perfect, Thanks a lot
Can anybody provide a solution to hide the horizontal lines as well. Thanks in advance!
@utkarsh1510 You can hide the horizontal lines by adding the following to the yAxes property:
gridLines: {
drawOnChartArea: false
}
Most helpful comment
you can remove the vertical lines by setting display: false in inside xAxes property.
I hope this helps.