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. Image for the cookie policy date

Pie chart colors

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

3 Replies

DJ Davis Jebaraj Syncfusion Team September 21, 2004 12:35 PM

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


RB Ronda Bergman (see 360683) August 21, 2009 05:08 PM

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

Thanks Ronda


VV Venkata Vijayaraj B Syncfusion Team August 25, 2009 07:05 AM

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.

Loader.
Live Chat Icon For mobile
Up arrow icon