Chartjs-How to set minimal value for bar chart in Chart.js? (ver. 2.0.2)

1👍

well, ok, this was less obvious solution than I could find for ver. 1.0.x

but anyway, here’s the options JSON that helped me

    chart = new Chart(ctx, {
      type: 'bar',
      data: data,
      options: {
        scales: {
          yAxes: [{
            ticks: {
              suggestedMin: 0
            }
          }]
        }
      }
    });

and that I found under: http://www.chartjs.org/docs/#scales

Leave a comment