0👍
You should omit data.labels
and instead, provide the data
for both datasets
in point format. This is an array
of objects having an x
and y
property each.
data: [
{ x: 10, y: 20 },
{ x: 15, y: 10 },
...
]
- Chartjs-Extract data from an array of Object
- Chartjs-Chart.js Line chart doesn't display line past a certain point in the chart
Source:stackexchange.com