[Chartjs]-React JS Chart JS 2 is not hiding the grid lines in the background

6👍

you are using V2 syntax with V3,

your config needs to be like this:

options: {
  scales: {
    x: {
      grid: {
        display: false
      }
    },
    y: {
      grid: {
        display: false
      }
    }
  }
}

For all differences please read the migration guide

Leave a comment