I have a 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
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.

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

You could try using chart.labels.sticks

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.

Richard, RGraph Support
Posted by Nishant on 9th April 2013

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.

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

Try using a key.

Richard, RGraph 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:


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

Richard, RGraph Support

Add a reply

« Back to message list