Chartjs-Chart.js, how to reduce space between labels and bars (horizontal bar chart)

3👍

You can use ticks.padding to define the offset of the tick labels from the axis. In you case, it needs to be defined inside the options.scales.yAxis as follows:

options: {
  scales: {
    yAxes: [{
      gridLines: {
        drawTicks: false
      },
      ticks: {
        padding: 5
      }
    }],

Leave a comment