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 change precision of a ChartCrossHairBehavior?

Thread ID:





129453 Mar 19,2017 07:33 PM UTC Mar 22,2017 03:43 AM UTC WPF 3
Tags: SfChart
Luca De Marco
Asked On March 19, 2017 07:33 PM UTC

Good Evening,

I have added a ChartCrossHairBehavior to my chart, but the value that appear in the Y axis is 1.07 or 1.08. I'd like it to show small values like 1.07564 or 1.07123. Is that possible?

Thank you in advance for your help,

Devi Aruna Maharasi Murugan [Syncfusion]
Replied On March 20, 2017 09:56 AM UTC

Hi Luca, 
Thanks for contacting Syncfusion Support. 
By default, in CrossHairBehaviour, we rounded the axis labels value as two decimals. However, we have achieved your requirement (displaying the small values in crosshair label) with the CustomCrossHairBehavior. We have prepared a demo sample for your reference and it can be downloaded from below link, 
Sample: CrossHair129453 
Please find the output screenshot, 

Luca De Marco
Replied On March 21, 2017 08:11 PM UTC

Thank you!

I tried it and it works fine!

Devi Aruna Maharasi Murugan [Syncfusion]
Replied On March 22, 2017 03:43 AM UTC

Hi Luca, 
Thanks for your update. 
Please let us know, if you need any further assistance on this. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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