[Chartjs]-Chart.js how to show tick marks but hide gridlines

5👍

I showed the gridlines for both y axes and then for just one y axis I have:

gridLines: {
                    display: true,
                    drawOnChartArea: false,
                  },

The drawOnChartArea set to false removes the part of the gridlines inside the axes lines.

Leave a comment