chart.labels.ingraph

Share RGraph:   Share or Like RGraph on Facebook!

« 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 vrushali on 12th August 2013
Hello,

I am using chart.labels.ingraph to show count in pie chart.I want to show that labels only if chart.labels.ingraph is greater than 0.It is now showing if it is 0 also.How to do that?

Regards,
Vrushali
Posted by RGraph support on 12th August 2013
Hi there,

Well IIRC chart.labels.ingraph is just a boolean. Whereas chart.labels.ingraph.specific is an array containing the exact labels to show - so you can use that option but set the label to blank. eg:

obj.Set('chart.labels.ingraph.specific', ['Bob','Fred','Lucy','','Rich']);







Richard, RGraph Support

Add a reply




« Back to message list