Closed andrewspy closed 2 years ago
<chart-line> element doesn't work with Scatter Line Charts example from Chart.js. The following sample data and options properties for your reference.
<chart-line>
data
options
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' }] } } });
<chart-line>
element doesn't work with Scatter Line Charts example from Chart.js. The following sampledata
andoptions
properties for your reference.