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.

Column chart with different colors

Thread ID:





99177 May 5,2011 10:46 AM May 16,2011 05:26 AM Silverlight 3
Tags: Chart
Martin Vogt
Asked On May 5, 2011 10:46 AM


Is it possible to create a column chart where every column has its own color and each column is shown in the legend?

Regards Martin

Saravanan A [Syncfusion]
Replied On May 10, 2011 07:42 AM

Hi Martin,

Thanks for your interest in Syncfusion products.

In chart Silverlight we can change each segments color using the following code snippet.

Code Snippet: (c#)

Chart1.Areas[0].Series[0].Segments[0].Interior = new SolidColorBrush(Colors.Red);

But each segments of series cannot be shown in legend. Based on your requirement we have created simple sample and you can download the sample from below location.

Sample: http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=Col_seg98756490.zip

Please let us know if you need any further clarifications.


Martin Vogt
Replied On May 10, 2011 11:36 AM


Works. Thanks for your reply.

Would it also be possible through data binding?

E.g. I would add a property "Color" to the class "Sample":

public SolidColorBrush Color
get { return color; }

Sujitha S [Syncfusion]
Replied On May 16, 2011 05:26 AM

Hi Martin,

Thanks for your interest in Syncfusion products.

It is not possible to change the color of the segment using data binding.

Let me know, if you have any queries.

Sujitha S


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.