Chartjs-How to graph correctly with chart.js?

0👍

you need to start the x axis with 0,
that is how its done:

version 3.x

options: {
    scales: {
        x: {
            beginAtZero: true
        }
    }
}

try to explore the documentation of charts js at:
here

Leave a comment