Sign in to follow this  
Pallav

Can amounts be displayed on the 3D Pie Chart slices?

Recommended Posts

Is it possible to display percentage amounts on the pie chart slices instead of having to mouse over the slices to see the percentages in the tooltip?

Share this post


Link to post
Share on other sites

Thanks for responding.  I have tried using showpercentvalues='1' but all that does is display the percent value next to the label.  I am looking for a result like below where the percent value is actaully embedded in the pie chart slices.  I haven't been able to find any examples like this in FusionCharts so I'm curious if it can be done.da5852d6-a843-4955-9b14-dca0.bmp

Share this post


Link to post
Share on other sites

Not sure if this is what you are looking for but I had a similar requirement. in order to meet it, I added the value to the label. I had showPercentValues='1' so that the chart displayed the % at the end of the label. Then I have some code that simply appends the value of that slice to the label:

 


var value = 12345;

s+="<set label='MyLabel: " + displayFormat(value) +"' value='"+value+"'/>";

 

 

 

The result is a value/percentage combo in the label:

 

chart_sample.gif

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