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

Tooltip/trackball custom behavior

Hello! Thanks for helping us, developers, along the way.

I'd like to implement certain behavior for charts.
What we have now:
1) If user taps on chart series bar or line/spline data marker point, it is possible to show tooltip for this data point.
2) If user (long)taps on chart area it is possible to show trackball line with data labels for this point. The trackball disappears soon on tap end.

What is desirable: 
1) User wants to tap anywhere inside chart area in order to see tooltips for all data points at the same time. Tooltips should disappear after delay.
I suppose this could be done using some Xamarin GestureRecognizer on ChartToolTipBehavior class extension + DataMarker technic..
2) User wants to tap (preferable normal, not long tap) on chart to see Trackball with labels and to keep it on screen for a longer time (controlled by delay or user input). 

Could you please provide any solution for this?


1 Reply

PS Parthiban Sundaram Syncfusion Team June 23, 2017 04:28 PM UTC

Hi Ivan, 
 
Thanks for using Syncfusion products. 
 
Regarding “User wants to tap anywhere inside chart area to see tooltips for all data points at the same time. Tooltips should disappear after delay. 
 
We have achieved this by setting DataMarker ShowLabel property based on your requirement.  
 
Regarding “User wants to tap (preferable normal, not long tap) on chart to see Trackball with labels and to keep it on screen for a longer time 
 
We have achieved this using trackball behavior Show() and Hide() based on your requirement. 
 
We have added the TrackballDuration property for Trackballball delay and ToolTipDuration property for Tooltip delay in ChartTrackballExt class to set the duration of the label visibility.  
 
Code snippet: 
 
 trackball.TrackballDuration = 5;  
 trackball.ToolTipDuration = 5; 
 
 
 
Please let us know, if your requirement is difference from this  
 
Regards, 
Parthiban S 


Loader.
Up arrow icon