Sign in to follow this  
Pallav

Long labels with a Pie Chart

Recommended Posts

Hi,

With the PieChart, I would like to know if there is a way to have my labels go on multiple lines.

The descriptions I am working with are really long, so they often are "out of bound" of the flash and we miss information.

Is there an option to do such a thing?

Thanks a lot.

Share this post


Link to post
Share on other sites

I'm afraid we do not support breaking of labels on a pie chart. However, you can opt to hide the labels on the pie chart and then use FusionCharts grid component to show it.

Share this post


Link to post
Share on other sites

Actually, since I am laying out my data in PHP, I was able to introduce a line break like this:

 

 

 

[ code ]

 

$rsa = explode(" ",$rs2[answer]);

 

$rsa_words = count($rsa);

 

$x = 0;

 

$label = '';

 

foreach ($rsa as $value) {

 

$label .= $value." ";

 

if (($x == '6') || ($x == '13') || ($x == '20') || ($x == '27')) {

 

$label .= '

 

';

 

}

 

$x++;

 

}

 

 

 

[/ code ]

 

 

 

Basically I am breaking the line after every 7th word. Here is the result:

 

 

 

Attachment153.aspx

post-195-12844156478_thumb.jpg

Edited by Guest

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