Chartjs-Chart.js x-axes not working?

0👍

The data does not fit the type of the chart, there should be two coordinates ‘x’ and ‘y’. Line chart must have data like:

data: [{
        x: 10,
        y: 20
    }, {
        x: 15,
        y: 10
    }]

0👍

And delete this rows: min: -10,
max: 110,
That way the graph looks more beautiful and knows how to adjust the Y values itself.

Leave a comment