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.

Tooltip/trackball custom behavior

Thread ID:

Created:

Updated:

Platform:

Replies:

131124 Jun 22,2017 06:10 AM Jun 23,2017 12:28 PM Xamarin.Forms 1
loading
Tags: SfChart
kola
Asked On June 22, 2017 06:10 AM

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?


Parthiban Sundaram [Syncfusion]
Replied On June 23, 2017 12:28 PM

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 


CONFIRMATION

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.

;