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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Pie chart colors

Thread ID:

Created:

Updated:

Platform:

Replies:

19183 Sep 20,2004 05:17 PM UTC Aug 25,2009 11:05 AM UTC WinForms 3
loading
Tags: Chart
Jarrod Peace
Asked On September 20, 2004 05:17 PM UTC

Hi, I would like to change the colors of the different segments of a pie chart. I''ve tried to use the ChartControl.Model.ColorModel.CustomColors array, but this doesn''t seem to work. Any suggestions? Thanks, Jarrod

Davis Jebaraj [Syncfusion]
Replied On September 21, 2004 04:35 PM UTC

Hi Jarrod, You need to assign the CustomColors array and set the Palette to Custom. this.chartControl1.Model.ColorModel.CustomColors = new Color[]{Color.Green,Color.Blue,Color.Wheat,Color.AliceBlue,Color.Orange}; this.chartControl1.Model.ColorModel.Palette = ChartColorPalette.Custom; Please refer to the sample linked to below: ChartPieColors_1833.zip Regards, Davis

Ronda Bergman (see 360683)
Replied On August 21, 2009 09:08 PM UTC

I would like to view this sample but am getting a file not found error.

Thanks Ronda

Venkata Vijayaraj B [Syncfusion]
Replied On August 25, 2009 11:05 AM UTC

Hi Ronda,

Sorry for the inconvenience caused. Since, We are updated our server recently, some locations are changed. We are checking with this location and will send you once we get the updated link.

I have created a similar sample and attached in the below link. I have mentioned another code also in the sample to

customize the color of individual points.


Sample Link:
http://files.syncfusion.com/support/Chart.Windows/v7.3.0.20/F19183/main.htm

Please let me know if this helps.

Regards,
Venkat.

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon

;