Chartjs-Setting axis scales in ChartsJS

0👍

They have an option for this beginAtZero

scales: {
   y: {
     beginAtZero: true
    }
  }

0👍

thanks, this fixed it:

scales: {
    yAxes: [{
        display: true,
        ticks: {
            beginAtZero: true,
  
            min: 0
        }
    }]
},

Leave a comment