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 can you create custom columns in Chart series?

Description:

There are various types of chart series like Line, Column, Bubble, Area, and each type has its own shape and requirement. When a particular shape is not available by default, you can customize the default shape of any series as follows.

Solution:

You can define the custom templates for the series in the SfChart by using the CustomTemplate property. The DataTemplate 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 LineSeriesthe LineSegment comes as data context for that DataTemplate.

http://www.syncfusion.com/uploads/user/kb/wpf/wpf-17434/wpf-17434_img1.jpegNoteThe CustomTemplate property supports limited series only.

XAML

C#

C#

Output:

The following screenshot illustrates the output for the custom column segments, here it is a Polygon.

F:\Issue Files Chart\Issue File -10 Knowledge Base\WP_ScreenShot\New Second TIme\wp_ss_20150210_0013.png

Figure 1: SfChart with custom polygon series

 

Article ID: Published Date: Last Revised Date: Platform: Control:
5244 07/22/2015 07/22/2015 Windows Phone SfChart
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.