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

Is there a way to show tooltip on line serie when select the data point?

Thread ID:





120717 Oct 7,2015 06:05 PM UTC Oct 12,2015 11:43 AM UTC Xamarin.Forms 6
Tags: SfChart
Xiaopeng Qi
Asked On October 7, 2015 06:05 PM UTC

Could you give an example for how to do it, if possible? Thanks!

Xiaopeng Qi
Replied On October 7, 2015 06:08 PM UTC

What I need is, when clicking on the data point of line serie on the sfchart, it shows the XValue and YValue on the tooltip

Karthikeyan V [Syncfusion]
Replied On October 8, 2015 09:01 AM UTC

Hi Xiaopeng,

Thank for using Syncfusion products.

We are able to achieve the reported Tooltip requirement with the help of ChartTrackballBehavior. Please refer the below code example which shows the tooltip in series.


ChartTrackballBehaviorExt trackBall = new ChartTrackballBehaviorExt();
trackBall.LabelStyle = new ChartTrackballLabelStyle();
trackBall.LabelStyle.BackgroundColor = Color.Gray;
trackBall.LabelDisplayMode = TrackballLabelDisplayMode.FloatAllPoints;
trackBall.ShowLine = false;

We have prepared a sample based on your requirement. Please download the sample in the following location.


Sample: http://www.syncfusion.com/downloads/support/forum/120717/ze/TooltipsCustomize68503948


Please let us know if you have any further assistance on this.


Karthikeyan V.

Xiaopeng Qi
Replied On October 8, 2015 06:36 PM UTC


Thanks a lot for creating the sample codes. I will try it soon and let you know if it works in my project.

One question, I see you have custom renderer for both Android and WinPhone, do I need renderer for iOS? 


Manivannan Elangovan [Syncfusion]
Replied On October 9, 2015 12:31 PM UTC

Hi Xiaopeng,

We will wait until we hear from you.

For iOS, there is no need to write custom renderer, instead of that custom delegate is used.


Xiaopeng Qi
Replied On October 9, 2015 11:40 PM UTC

Karthikeyan and Manivannan,

The codes works great on both iOS and Android. Thanks a lot for the efforts you guys put on to help us!!!


Manivannan Elangovan [Syncfusion]
Replied On October 12, 2015 11:43 AM UTC

Hi Xiaopeng,

Thanks for the update. Please let us know if you have any query.



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

or the page will be automatically redirected to 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