I want to change the style of a single point in my Chart.js graph. I tried the solutions here
But none of them work for me. For example, to change the background color of the 4th point in my first dataset, I would try the following 2 solutions (and also removing/adding .config):
myChart.config.data.datasets[0].points[4].pointBackgroundColor = 'red';
myChart.config.data.datasets[0].pointBackgroundColor[4] = "red";
myChart.update();
to no effect. On the contrary, changing the style of the entire dataset works perfectly fine:
myChart.config.data.datasets[0].pointBackgroundColor = 'lightgreen';
myChart.update();
jsfiddle: https://jsfiddle.net/e8n4xd4z/15766/; Why is this?