I've almost got this fiddle working like I want it to; however, I have a strange mouseout issue that I haven't been able to figure out. When you click on a slice - it turns it green (active) when you click it again - it turns it grey (inactive). The problem is that when you click it and then slowly move you mouse off of the slice - it is resetting the color to grey. If you move your mouse out quickly - it stays green.
It only seems to do it on the first mouseout. What am I missing?
plotOptions: {
pie: {
states: {
hover: {
enabled: false
}
},
point: {
events: {
click: function() {
if(!this.active)
this.graphic.attr({ fill: '#00FF00' });
else
this.graphic.attr({ fill: '#CCCCCC' });
this.active = !this.active;
},
}
}
}
},