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

Thread ID:





129453 Mar 19,2017 03:33 PM Mar 21,2017 11:43 PM WPF 3
Tags: SfChart
Luca De Marco
Asked On March 19, 2017 03:33 PM

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 05:56 AM

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 04:11 PM

Thank you!

I tried it and it works fine!

Devi Aruna Maharasi Murugan [Syncfusion]
Replied On March 21, 2017 11:43 PM

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.

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.