1π
β
You can set the option to false like this:
lineChartOptions: ChartOptions = {
scales: {
x: {
grid: {
display: false,
},
},
y: {
grid: {
display: false,
},
},
},
};
1π
To remove the grid lines, you can adjust the lineChartOptions to specify that grid lines should not display for both x and y axes.
Update your lineChartOptions as follows:
lineChartOptions: ChartOptions = {
responsive: true,
scales: {
x: { // for x-axis
grid: {
display: false
}
},
y: { // for y-axis
grid: {
display: false
}
}
},
elements: {
point: {
radius: 0,
},
line: {
borderWidth: 1
}
}
};
Source:stackexchange.com