Chartjs-How to remove excess lines on X axis using chartjs?

0👍

https://www.chartjs.org/samples/latest/scales/gridlines-display.html
See the drawticks false option

                 scales: {
                    yAxes: [{
                        gridLines: {
                          display: true,
                          drawBorder: true,
                          drawOnChartArea: true,
                          drawTicks: false,
                        }
                        ticks: {
                            min: 0,
                            max: 100,
                            stepSize: 10
                        }
                    }]
                }

Leave a comment