We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Series.Point color - Windows Form Essential Chart

Thread ID:

Created:

Updated:

Platform:

Replies:

80441 Apr 2,2009 06:40 PM Apr 3,2009 01:29 PM Windows Forms 2
loading
Tags: Chart
Aymiee Lee
Asked On April 2, 2009 06:40 PM

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?




Venkata Vijayaraj B [Syncfusion]
Replied On April 3, 2009 06:54 AM


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.


Aymiee Lee
Replied On April 3, 2009 01:29 PM

Perfect!! Thanks very much!!!


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;