I'm trying to change the color of scatterplot points, one at a time. I have the code below which works, but I'm not sure how to change the color back when you click on a second point.
For example, I'd like it to work so if all the points are yellow by default and you click point A, point A alone turns black. Then when you click point B, point B turns black and point A turns back to yellow.
plotOptions: {
series: {
point: {
events: {
click: function() {
var thisPoint = this.options;
thisPoint.color = 'black';
this.update(thisPoint, true);
}
}
}
}
},