Chartjs-Chartjs line graph points with different color

0👍

I don’t have enough detail to know if your problem comes from there but the syntax of your code is incorrect.

You should have :

function drawChart(placeholder, values1, labels1) {
    var plot = $.plot(placeholder,
        [{
            data: values1,
            label: label1,
            lines: {
                show: true,
                lineWidth: 2,
                fill: true,

            },
            points: {
                show: true,
                lineWidth: 3,
                fill: true,
                fillColor: '#fafafa'
            }

        }]
    });
}

Leave a comment