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.

How to display underlying model data in tooltip?

Description:

The chart series tooltip shows YData of the series, by default. The SfChart allows you to display the underlying model of the series in tooltip. This article describes how to show the underlying model.

 

Solution:

In series, each segment holds the corresponding underlying model in the Item property. To display the tooltip from the underlying model, use the ToolTipTemplate property. In that template, you can bind the Item property of the segment to the Text property of the TextBlock as illustrated in the following code.

 

XAML

 

C#

 

The following screenshot displays the tooltip with underlying model data.

Figure 1: Tooltip with underlying model data.

Article ID: Published Date: Last Revised Date: Platform: Control:
6152 01/27/2016 03/13/2018 UWP SfChart
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.