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.

What is the difference between tooltip format and tooltip template?

When you move the mouse over a particular point, tooltip displays the values of that point. By default its display format looks like “x value : y value (eg: 2000: 20)”.

Tooltip format

You can customize the values displayed in tooltip using format property. The online sample using tooltip format is available in the following link.

http://asp.syncfusion.com/demos/web/chart/symbols.aspx

Tooltip template

Tooltip template refers to using HTML elements like image, tables in tooltip through template property of tooltip. Since HTML elements such as div, image, table, etc., are used, you can style the tooltip template using CSS and it appears more attractive than default tooltip. The online sample for tooltip template is available in the following link.

http://asp.syncfusion.com/demos/web/chart/tooltiptemplate.aspx

Difference between tooltip format and template

In general, tooltip format is used to format the values displayed in tooltip whereas tooltip template is used to customize the appearance of tooltip.

In the following code example, the first series is rendered with tooltip template, next with specified tooltip format and the last series is rendered with default tooltip.

 ASP

The output of the above code example is as follows.

Figure 1: Chart with Tooltip template

Article ID: Published Date: Last Revised Date: Platform: Control:
3263 01/19/2015 01/19/2015 ASP.NET Web Forms Chart
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.