Sign in to follow this  
Sanjukta

PieChart labels do not display correctly

Recommended Posts

I have my pie chart inside an item, the size of the pie chart adjust correctly but I loose some parts of some long labels. Do you have an idea of what I can do ?

 

 

 

Thanks,

 

 

 

pielabel.jpg

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Please try setting the attribute "enableSmartLabels" to '1' in the <chart> element.

Also, could you please try setting a value in the "labelDistance" attribute in the <chart> element.

In case it still does not work fo you, please send us the XML codes that you are using as an attachment.

Hope this helps. :)

Share this post


Link to post
Share on other sites

Could you take a look and tell me what's wrong ?

 

The code the chartObj is in chartObj.txt and the dataXml (used in chartObj.setDataXML()) is in attachment.

 

 

 

Thanks alot,

PieChart.xml

chartObj.txt

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Could you please specify the issue a bit elaborately?

Awaiting your reply.

Share this post


Link to post
Share on other sites

I try to break the labels into two lines, names and values.

 

The problem now is even with enableSmartLabels='1' and labelDistance='10', I have overlapped labels.

 

 

 

Could you tell me if there is something I missed ?

 

 

 

Thank you very much.

 

 

 

piecharti.png

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

As you have specified a very small value difference among the datavalues of the Pie Chart, it will get overlapped in case you use line-break( ) notation.

For this please try setting the value for the "labelDistance" attribute to '0', "pieRadius" attribute to '30'(you can chage it as per your requirement) and the "smartLabelClearance" attribute to '-10' in the <chart> element.

For further details please refer to the link below:-

Ref.- http://www.fusioncharts.com/docs?/ChartSS/Pie2D.html

Also, please refer to the screen-shot that we are sending you as an attachment.

Hope this helps. :)

piechart_label.zip

Share this post


Link to post
Share on other sites

It works in this case with this particular data but for other data I'll have to find other parameters.

 

In the next version of Fusion Chart do you have any plan of improving the Smart Labels ? If not could you please at least try to resolve the problem of overlapping multi-lines labels ?

 

 

 

Thank you very much,

 

 

 

Have a nice day

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

We are glad that your current issue is resolved.

In the next version of Fusion Chart do you have any plan of improving the Smart Labels ?

Your suggestions are always important to us. We will definitely add this to our wish-list.

However, as of now we do not have the plan for the same in our next release.

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