Chartjs-How to change chart.js grid, and axis color?

1👍

In chart.js there is a configuration for cartesian axes, as per the docs
. You can change the config like this to handle the colour of the X and Y axes.

const config = {
  type: 'bar',
  data,
  options: {
    scales: {
      x: {
        grid: {
          borderColor: 'white'
        }
      },
      y: {
        grid: {
          borderColor: 'white'
        }
      },
    }
  }
};

Leave a comment