amordach

Display Labels On Pie Chart

Recommended Posts

Hello,

 

 

 

I have a 2d pie chart that I am using on my site. When I set the labels to display it shows the actual data points entered in and when I hover over the chart is shows me the percent of the slice. How do I set it so that the labels that show up on the chart are the percentage and the hover over lablels are the actual numbers?

 

 

 

Example:

 

 

 

pieo.png

 

 

 

XML Attached

 

 

 

I would also like to know how to set the slice to be "drawn out" by default? As if you had enable slicing movement and then clicked on the small slice so that it pops out.

pie.xml

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

1. To change the labels to percentage values, please use the showPercentageValues='1' in the <chart> element.

2. To change the hover text to the actual value, please use the toolText attribute in the <set> element, to display your custom toolText.

I am attaching an XML for your reference.

Hope this helps. :)

data.xml

Share this post


Link to post
Share on other sites

Thanks for that information, just one more thing...

 

 

 

How can I set the slice to be "drawn out" by default? As if you had enable slicing movement and then clicked on the small slice so that it pops out.

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

You can make the slices "draw out" by default, by using isSliced='1' in the <set> element.

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