0👍
Please refer the code snippet below to render the chart correctly, or can visit the fiddle -> https://jsfiddle.net/pgv2jon3/1/
var lineData = {
type: "line",
data: {
datasets: [{
label: "Test",
data: [{
x: 2,
y: 5
}, {
x: 5,
y: 10
}],
}]
}
}
var ctx = document.getElementById('line').getContext('2d');
new Chart(ctx, lineData);
Source:stackexchange.com