Series.Point color - Windows Form Essential Chart

In a scatter plot chart, I need to change each point's color depending on where they lie. How do I change individual point color?




2 Replies

VV Venkata Vijayaraj B Syncfusion Team April 3, 2009 10:54 AM UTC


Hi Aymiee,

Thanks for your interest in Syncfusion products.

To customize the color of individual point in the Scatter chart use the below code

chartControl1.Series[0].Styles[0].Interior = new BrushInfo(Color.Red);
chartControl1.Series[0].Styles[1].Interior = new BrushInfo(Color.Violet);
chartControl1.Series[0].Styles[2].Interior = new BrushInfo(Color.Orange);


To customize the color of the Series use the below code
chartControl1.Series[0].Style.Interior = new BrushInfo(Color.Red);
chartControl1.Series[1].Style.Interior = new BrushInfo(Color.Blue);
chartControl1.Series[2].Style.Interior = new BrushInfo(Color.Green);

Please let me know if this meets your requirement.

Regards,
Venkat.



AL Aymiee Lee April 3, 2009 05:29 PM UTC

Perfect!! Thanks very much!!!


Loader.
Up arrow icon