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 define ticker labels of custom axis ?

How to define custom axis ticker labels?

In SfChart, we can define custom axis ticker label in following two ways:

  1. We can define the ticker label by using the LabelsSource, ContentPath, and PositionPath properties of a chart axis. In the following sample, DataValues is the observablecollection, which contains the label content and position values of chart axes. The LabelsSource property binds the collection of DataValues. The ContentPath property is to specify the collection, and the PositionPath property defines the position of the chart axis.



  1. Using chart axis CustomLabels, we can define the ticker label of custom x-axis and y-axis as shown in the following code.





Article ID: Published Date: Last Revised Date: Platform: Control: .NET Framework: Product Version:
2588 09/03/2014 03/08/2018 WPF SfChart 4.5
Did you find this information helpful?
Mia Widstrand Dec 22, 2015
How do I achieve the same for the y axis?
Sheik Syed Abthaheer M [Syncfusion] Dec 24, 2015
Hi Mia Widstrand, We have refreshed content for applying custom label in Y axis. If we are not specifying the range explicitly in chart axis, we can set the custom labels as like in the below KB. https://www.syncfusion.com/kb/5907/how-to-set-the-custom-labels-with-auto-range-for-axis Regards, M. Sheik
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