Chartjs-How to set minimum height for bars graph

0👍

Your question is not very clear but perhaps you are looking for the beginAtZero tick option.

If this is not set to true then (at least) one of your points will be ‘invisible’ as it’ll sit on the border of the chart area. This is because Chart.js will, by default, use the lowest value in your dataset as the min scale value.

options: {
  scales: {
    yAxes: [{
      ticks: {
        beginAtZero: true
      }
    }]
  }
}

Leave a comment