[Chartjs]-Unable to make y-axis to begin at zero on Charts.js v2.1.4

15πŸ‘

βœ…

I had the same problems. You have to define β€œticks” within the yAxes-definition:

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

Updated fiddle: https://jsfiddle.net/r90Ljzvo/5/

Leave a comment