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.
Syncfusion Feedback

How to customize the default shape of any series with the required shapes?

Description:

There are various chart type series such as line, column, bubble, area, etc., and each type has its own shape and requirement. This article shows how to customize default shape of any series when the required shape is not available. 

 

Solution:

You can define the custom templates for series in chart by using the CustomTemplate property. The DataTemplate that defined in this property renders for each data point. This template gets the corresponding segment as the DataContext. For instance, on defining a template for LineSeries, the LineSegment comes as data context for that DataTemplate.

 

Note: This CustomTemplate property supports limited series only.

 

XAML

 

C#

The following screenshot illustrates the custom column segments, here Polygons.

Article ID: Published Date: Last Revised Date: Platform: Control:
6470 03/04/2016 03/07/2018 UWP SfChart
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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