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

Column chart with different colors

Thread ID:

Created:

Updated:

Platform:

Replies:

99177 May 5,2011 02:46 PM UTC May 16,2011 09:26 AM UTC Silverlight 3
loading
Tags: Chart
Martin Vogt
Asked On May 5, 2011 02:46 PM UTC

Hi

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 11:42 AM UTC

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.

Regards,
Saravanan



Martin Vogt
Replied On May 10, 2011 03:36 PM UTC

Hi

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 09:26 AM UTC

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.

Regards,
Sujitha S



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.

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

;