Sign in to follow this  
Velocedge

Labels In Pie With Free Version?

Recommended Posts

Are there lables that can be attached to a pie chart in the free version? I've tried adding showLegend='1' and showValues='1' but can only see the labels and percentages when I mouse over a slice.

Share this post


Link to post
Share on other sites
Guest Bindhu

Are there lables that can be attached to a pie chart in the free version? I've tried adding showLegend='1' and showValues='1' but can only see the labels and percentages when I mouse over a slice.

 

Hi,

 

Please try using the attribute hoverText and set the custom text to be displayed as a value to this attribute.

 

Ref. Code:

<set hoverText='text to be displayed in toolTip' name=' 03/15 03:30' value='107031.77'>

 

Hope this helps.

Edited by Bindhu

Share this post


Link to post
Share on other sites

Hi,

 

Simply use showNames='1' in the <graph> element of your XML.

 

Example XML:

 

<graph showNames='1'  decimalPrecision='0'  >
  <set name='USA' value='20' isSliced='1'/>
  <set name='France' value='7'  />
  <set name='India' value='12' />
  <set name='England' value='11' />
  <set name='Italy' value='8' />
  <set name='Canada' value='19'/>
  <set name='Germany' value='15'/>
</graph>

 

Moreover, there are options not to show percentage values in tooltip - just set showPercentageValues='0' in the <graph> element. Again, if you need to do a reverse - where you want to show percentage values (instead of the actual values) attached to each pie slice beside the labels - add showPercentageInLabel ='1' in the <graph> element.

 

Hope this helps :D

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