Highcharts - change pie slice color on existing chart -


I have a pie chart that already exists. I need to change the color of the specific piece I have tried ...

  chart.series [0] .data [4] .graphic.attr ({fill: '# ff0000'} );  

But it only temporarily changes color until it becomes the object. I have also tried to make a general change of alternative method.

How do I change it for the good?

Just use the method, such as:

  chart.series [0] .data [4] .update ({color: '# FF0000'});  

.


Comments

Popular posts from this blog

python - Strange behavior using PyQt4's 'pyqtSlot' decorator before another decorator -

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

c# - Process.Kill() returns access denied -