Pie chart label overlapping Issue


« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Gautam on 22nd February 2013
Hi,
I just started working on RGraph API's and stuck on one issue when i draw pie chart and data in array come as 0% with more that one it overlap the label and its not showing labels properly is there any way to avoid this i tried to change the size of stick but it wouldn't work.
My java-script array is like this data(0,0,0,60,20);

Please help me on this.

Thanks,
Gautam
Posted by RGraph support on 22nd February 2013
Hi there,

You could try using chart.labels.sticks like in this Pie chart:

dev.rgraph.net/tests/pie/chris.html

which is done with:

pie.Set('chart.labels.sticks', true);

Alternatively you can check the values and if they're small omit the label - ir use a key.


PS Could you link to the RGraph website - thanks.

Richard, RGraph Support

1 Year Priority Support now reduced to £299:
   www.rgraph.net/support
Posted by Nishant on 9th April 2013
Hi,

I tried your solution but the sticks didnt really help in the labels-overalpping issue. Also some values even though small, cant be ignored.

I am new to RGraph and I am using RGraph in my iOS application development. so please let me know if there is any other way to solve this.

Thanks.
Posted by RGraph support on 9th April 2013
Hi there,

Try using a key.



Richard, RGraph Support

1 Year Priority Support now reduced to £299:
   www.rgraph.net/support
Posted by Arthur on 23rd April 2013
what do you mean by using a key? is there any existing example of charts that using key?
cause i go through your example but i cannot find it...or maybe i dont understand how to use the key...
Posted by RGraph support on 23rd April 2013
Hi there,
There's a docs page that details keys here:

www.rgraph.net/docs/keys-in-charts.html

It's a way of removing the overlapping label issue.



Richard, RGraph Support

5 developer license with Priority support for £299:
   www.rgraph.net/license#five-developer

Add a reply

 




« Back to message list
RGraph on social media