Chartjs-Can "Bar" be placed center of vertical grid line in Chart.js?

1👍

Did you tried to set gridLines.offsetGridLines to false? It should be working fine. Check out the documentation here: https://www.chartjs.org/docs/latest/charts/bar.html#scale-configuration

options: {
  scales: {
    xAxes: [{
      gridLines: {
        offsetGridLines: false
      }
    }
  }
}

Leave a comment