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.
- Chartjs-React & Chartjs: How can I best destroy my chart when re-rendering?
- Chartjs-Multiple y-axes using Chart JS with data as a dictionary
Source:stackexchange.com