Sign in to follow this  
paxdev

Values inside legend?

Recommended Posts

Hello,

 

I'm looking to include the values of a 2D pie chart within the accompanying legend. So instead of showing the values in smart labels or with smart lines, I'd actually like to see the values next to the labels in the legend. Any chnace this is possible?

 

- Jason

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi Jason,

 

I am afraid, FusionCharts XT does not provide any attribute to set the values to be shown inside legend.

 

However, you could achieve this by manually putting the values as string in the "label" attribute of <set> elements.

 

Ref. XML Code:

<chart showLegend='1'>
   <set label='Slice-1, 20'  value='20' showValue='0' />
   <set label='Slice-2, 40' value='40' showValue='0' />
   <set label='Slice-3, 40' value='40' showValue='0' />
</chart>

Hope this helps!

Share this post


Link to post
Share on other sites

Thank you, Sashibhusan.

 

Hmmm... this may be a possibility. I'm actually not crazy about the designer's idea, so I'm going to try to sway him from this course. But if not, I may be able to utilize this solution.

 

Thank you!

 

- Jason

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