Sign in to follow this  
zhenghaoju

Can you support custom chart tooltip by template?

Recommended Posts

Can you support custom chart tooltip by template? for example: user can define tooltip string like "#{yValue}, #{xLabel} ", the chart will display something replace #{...} in tooltip.

 

:D

Share this post


Link to post
Share on other sites
Hi,
Starting FusionCharts v3.4, you can achieve this using macros to embed data value and label in dynamic tooltips

 Macros:
       # $dataValue - Formatted value
       # $label - Label of the column
       # $value - Raw value of the column
Use these macros in 'plottooltext' attribute

You can check out:
http://jsfiddle.net/fusioncharts/CB98Y/
 

Hope this helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this