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

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?

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

Help support RGraph - single site license only £99

Add a reply

« Back to message list