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
close icon

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 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

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

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 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:

Please let me know if this helps.


Live Chat Icon For mobile
Up arrow icon