[Chartjs]-Remove left and right padding in Chart.js

0👍

use drawTicks in yAxes

options: {
    scales: { 
        yAxes: {
            grid: {
                drawTicks: false,
            },
        },
    }
}

-4👍

Hard to say without showing your code, but to me it could look like the labels adding padding to the sides.

Have you tried rotating the labels to see if it helps:

 options: {
    scales: {
      xAxes: [{
        ticks: {
          autoSkip: false,
          maxRotation: 90,
          minRotation: 90
        }
      }]
    }
  }

Leave a comment