vitorbari

Value In Legend

Recommended Posts

Guest Bindhu

Hi,

 

Welcome to the FusionCharts Forum.

 

Thank you for the post.

 

The label that you define in the <set.../> tag, will be used in the Legend.

 

Hence, if you want to display percentage values in the Legend, then you have to explicitly define the label with percentage value.

 

Please note:

If you use the above method to include percentage value in the legend, please make sure to define 'toolText' and 'displayValue' attribute correspondingly, otherwise, it will lead to redundancy.

 

Please find attached screenshot of the chart rendered with the above settings.

 

Also, please find the XML sample attached for your reference.

 

Hope this helps !

 

Happy FusionCharting :)

post-23884-0-26442700-1326343271_thumb.png

Pie.xml

Edited by Bindhu

Share this post


Link to post
Share on other sites
Hello,
 
Thanks for the query.
 
The label which we set with a value, that same label is used by the legend.
So if you want to modify the legend, you need to reach there by setting the label in the desired format. e.g "label" : "Teenage, 29.4%"
 
Note : We need to modify the tooltext and the display value to avoid redundancy.
 
Please find the sample fiddle below, for the implementation.

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