Styles not working

Hi,

I am trying to change the first bar color to red with the following code,

chartControl1.Series[e.Region.SeriesIndex].Styles[0].Interior = new BrushInfo(GradientStyle.None, Color.Red, Color.Red);

There is no exception but not working.

However if change the Interior to the whole series, it works.

chartControl1.Series[e.Region.SeriesIndex].Style.Interior = new BrushInfo(GradientStyle.None, Color.Red, Color.Red);

Is there any refresh or update method I have to invoke after change the Styles[0].Interior?

(please take a look at method: chartControl1_ChartRegionClick)


Attachment: CS_efd4c433.7z

2 Replies 1 reply marked as answer

AN Anibal September 13, 2020 09:33 PM UTC

I got the answer. do this at first...

Style.ResetInterior()

Please close it^^

Marked as answer

YP Yuvaraj Palanisamy Syncfusion Team September 14, 2020 11:56 AM UTC

Hi Anibal, 
  
We are glad to hear that you have resolved it. 
  
Regards 
Yuvaraj 


Loader.
Up arrow icon