score:11

Accepted answer

try adding min to your options:

    var options = {
      scales: {
        yaxes: [{
          ticks: {
            beginatzero: true,
            min: 0
          }    
        }]
      }
    };

enter image description here

live copepen: chart.js start at zero

score:2

replaced by:

const options = {
  scales: {
    y: {
      beginatzero: true
    }
  }
};

it worked!

score:2

as per chart.js 3.7.1 version

directly write "beginatzero" in x or y not in ticks

   const options = {
    scales: {
         x: {
           beginatzero: true,            
         },
         y: {
           beginatzero: true,
         }
       }
    };

Related Query

More Query from same tag