chart-elements
chart-elements copied to clipboard
<chart-line> element not working on Scatter Line Chart
<chart-line> element doesn't work with Scatter Line Charts example from Chart.js. The following sample data and options properties for your reference.
var scatterChart = new Chart(ctx, {
type: 'line',
data: {
datasets: [{
label: 'Scatter Dataset',
data: [{
x: -10,
y: 0
}, {
x: 0,
y: 10
}, {
x: 10,
y: 5
}]
}]
},
options: {
scales: {
xAxes: [{
type: 'linear',
position: 'bottom'
}]
}
}
});