chart-elements icon indicating copy to clipboard operation
chart-elements copied to clipboard

<chart-line> element not working on Scatter Line Chart

Open andrewspy opened this issue 9 years ago • 0 comments

<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'
            }]
        }
    }
});

andrewspy avatar Dec 28 '16 08:12 andrewspy