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

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -