ActiveReports Developers 7 Now Available in Beta!! (click for details)

ActiveReports for .NET Support

Started by Claymore at 02-04-2010 2:58 PM. Topic has 2 replies.

Print Search Rate
Sort Posts:    
   02-04-2010, 2:58 PM
Claymore is not online. Last active: 10/26/2011 4:21:05 PM Claymore

Not Ranked
Joined on 01-28-2010
Posts 10
Changing ChartControl's ColorPalette
Is it possible to add a list of custom colors to use for the ChartControl? Currently ColorPalette is an enum and I don't see a way to override to use my list of colors for different series.

Thanks

   Report 
   02-05-2010, 12:32 AM
subodh.sinha is not online. Last active: 3/16/2012 4:32:58 PM subodh.sinha

Top 25 Posts
Joined on 10-06-2009
Posts 1,146

DDStaff
Re: Changing ChartControl's ColorPalette

Attachment: CustomColorPalete.zip
Hello,

If I understood the issue correctly then you want create you own colorpalete list which can be used as Chart-controls colorpalete. If this is the said scenario, I can provide you a workaround where a extension method is added to the chart-control. In the extension method you change the colors of all series and other desired properties. I have attached a sample which demonstrates how to achieve this. Please go through the sample and let me know if I misunderstood the issue.

Regards,
Subodh
   Report 
   02-05-2010, 10:46 AM
Claymore is not online. Last active: 10/26/2011 4:21:05 PM Claymore

Not Ranked
Joined on 01-28-2010
Posts 10
Re: Changing ChartControl's ColorPalette
Thank you. This helped alot.

I actually needed to change the Backdrop of Points within a Series. Code was similar to this extension method in your example.

Regards

   Report 
GrapeCity » Product Support » ActiveReports f... » Changing ChartControl's ColorPalette

Privacy Policy | Copyright © 1997-2012 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.