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

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

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

6 Replies

XQ Xiaopeng Qi October 7, 2015 01:08 PM

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

KV Karthikeyan V Syncfusion Team October 8, 2015 04:01 AM

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.

XQ Xiaopeng Qi October 8, 2015 01:36 PM


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? 


ME Manivannan Elangovan Syncfusion Team October 9, 2015 07:31 AM

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.


XQ Xiaopeng Qi October 9, 2015 06:40 PM

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!!!


ME Manivannan Elangovan Syncfusion Team October 12, 2015 06:43 AM

Hi Xiaopeng,

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


Live Chat Icon For mobile
Up arrow icon