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. Image for the cookie policy date
close icon

How to change precision of a ChartCrossHairBehavior?

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,
Luca

3 Replies

DA Devi Aruna Maharasi Murugan Syncfusion Team 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, 
 
  
Regards, 
Devi 






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

Thank you!

I tried it and it works fine!


DA Devi Aruna Maharasi Murugan Syncfusion Team 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. 
  
Regards, 
Devi 


Loader.
Live Chat Icon For mobile
Up arrow icon