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

How to make my ToolTip display the X value or other underlying values instead of Y value?

Description:

By default, series ToolTip displays only the Y values. This article describes the way to change this default setup for ToolTip and make it display both X and Y values.

Solution:

The ToolTip in the SfChart can be customized by using the TooltipTemplate property. The custom template can be defined in the DataTemplate property. This template gets the ChartSegment in the template context and you can get X and Y values or even the complete datapoint object from this segment instance.

 

Note: A converter is used to get the X and Y values from the ChartSegment.

 

XAML

 

C#

 

C#

 

The following screenshot illustrates the output for the Chart with the ToolTip showing the X and Y values of the segments.das:

 

F:\Issue Files Chart\Issue File -10 Knowledge Base\WP_ScreenShot\New Second TIme\wp_ss_20150210_0049.png

Article ID: Published Date: Last Revised Date: Platform: Control:
5127 06/03/2015 06/03/2015 Windows Phone SfChart
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Please sign in to access our KB

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