Labels inside Pie Chart

Share RGraph:   To help my Google visibility (it can't get much worse!), if you like and use RGraph I'd appreciate it if you could link to me

« 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 Allistar on 31st July 2013
Hello,

I am looking for a way of embedding labels inside pie charts. Is there a way of doing that?

Also, I would like to colour the labels differently and creating line breaks in labels.

Thanks,

Allistar
Posted by RGraph support on 31st July 2013
Hi there,

You can add labels (like on the example page) with the chart.labels.ingraph and chart.labels.ingraph.specific options.

You can probably add line breaks if you use chart.labels.ingraph.specific - eg:

obj.Set('chart.labels.ingraph.specific', ['Line 1\r\nLine 2']);

Though there's no option for colors.



Richard, RGraph Support

Help support RGraph - single site license only £99!
   www.rgraph.net/license#single-site
Posted by Allistar on 1st August 2013
THank you. The new lines worked.

Is there also a way to position labels in a pie chart closer to the edge?

Thanks,

A
Posted by RGraph support on 1st August 2013
Hi there,

No - there's no option for that either - the labels are always positioned in the center of the segment.




Richard, RGraph Support

Help support RGraph - single site license only £99!
   www.rgraph.net/license#single-site

Add a reply




« Back to message list