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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to define the fill color for each datapoint from ItemsSource?

Platform: WPF |
Control: SfChart |
Published Date: June 3, 2015 |
Last Revised Date: June 27, 2019


This article describes how the segments interior is applied from the colors that specified in the underlined model of the ItemsSource.


Chart provides Custom palette support to give you a set of brushes for each data point.

Your model has three properties for defining the X, Y, and color values. The CustomBrushes property can be defined as shown in the following code example.


Viewmodel view = new Viewmodel();
ColumnSeries columnSeries = new ColumnSeries();
columnSeries.ItemsSource = view.SneakersDetail;
columnSeries.XBindingPath = "Brand";
columnSeries.YBindingPath = "No_Of_Items";
columnSeries.Palette = ChartColorPalette.Custom;
//Adding colorModel to the series 
ChartColorModel colorModel = new ChartColorModel();
foreach (var item in view.SneakersDetail)
colorModel.CustomBrushes = view.SeriesColor;
columnSeries.ColorModel = colorModel;


Chart with specific interior color for each data points obtained from it's item source in WPF

Figure 1: ColumnSeries with specific interior color.

2X faster development

The ultimate WPF UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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

Live Chat Icon For mobile
Live Chat Icon