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

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

Platform: Windows Phone |
Control: SfChart |
Published Date: June 3, 2015 |
Last Revised Date: March 9, 2018

Description:

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

 

Solution:

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. Th CustomBrushes property can be defined as shown in the following code example.

C#

Output:

 

Figure 1: ColumnSeries with specific interior color.

 

ADD COMMENT
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.

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