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.

How to set custom palette for a chart with multiple columns ?

Thread ID:

Created:

Updated:

Platform:

Replies:

114790 Dec 9,2013 10:17 AM Jan 18,2014 01:46 AM WinRT 3
loading
Tags: General
Thierry Maurel
Asked On December 9, 2013 10:17 AM

        

Muneesh Kumar G [Syncfusion]
Replied On December 10, 2013 03:45 AM

Hi Thierry,

Thanks for using Syncfusion products.

We can achieve your requirement by setting Custom Palette as per the below code snippet.

Code Snippet[XAML]:

<chart:ColumnSeries  Palette="Custom" ItemsSource="{Binding CategoricalDatas}"  XBindingPath="Category" YBindingPath="Value" Label="First" >

<chart:ColumnSeries.ColorModel>

 

<chart:ChartColorModel>

 

<chart:ChartColorModel.CustomBrushes>

 

<SolidColorBrush Color="White"/>

 

<SolidColorBrush Color="#FF3B5C"/>

 

<SolidColorBrush Color="#F06B3C"/>

 

<SolidColorBrush Color="#FFFB6C"/>

 

<SolidColorBrush Color="#F0FB8C"/>

 

</chart:ChartColorModel.CustomBrushes>

 

</chart:ChartColorModel>

 

</chart:ColumnSeries.ColorModel>

We have prepared a sample based on this and you can find the sample under the following location:

Sample : http://www.syncfusion.com/downloads/support/directtrac/116663/CustomPaletteChart1547176918.zip

Please let us know if you have any queries.

Regards,

Muneesh Kumar G.


Thierry Maurel
Replied On January 15, 2014 04:17 AM

Thank you for your answer. 
I finally found a workaround, with the use of "series.Interior" and assign a brush from my proper palette for each of series, when I generate the data.
That solution is best for me because I avoid a XAML part, which can not be modified by the code.
Regards
Thierry


Karthikeyan V [Syncfusion]
Replied On January 18, 2014 01:46 AM

Hi Thierry,

Thanks for your update.

We would like to inform you that the previous update for provided by custom palette support to each column segments of single series.

As for your requirement is to change the different custom interior for each of series, you can achieve this by series interior property only

Note: if your requirement not this. Please provide more information about your requirement. This would be helpful for us to serve you.

Please let us know if you have any query.

Thanks,

Karthikeyan V.


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.

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.

;