How can I change a point color in Scatter graph?

I’m creating myScatter like this:
window.myScatter = Chart.Scatter(ctx, { /…./ }

I was assuming (search here and in StackOverflow) that changing the color to an individual point it would be something like:

window.myScatter.data.datasets[1].data[5].backgroundColor =”rgba(0,255,255,1)”;
window.myScatter.update();

But I cant find the style properties for each point, so I doesn’t do the change.
How can I achieve this?
Thank you!

Author: Fantashit

1 thought on “How can I change a point color in Scatter graph?

  1. To change the color of an individual point, you can set the pointBackgroundColor property of the dataset to an array of values. The first value is applied to the first point, 2nd value to the 2nd point, etc.

Comments are closed.