Data point for stacked Bar showing even when value is 0

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 Piyush on 22nd July 2013
data = [34,33,0,2,42]
colors = ['rgb(146, 208, 80)', 'yellow', 'red', 'grey', '#B07CD2']

The data point with color red should not show up on the stacked bar because its value is 0. And yet it does, a very thin layer, but enough to get noticed.

How can i ensure data points with 0 do not show up on the chart?

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

OK I've made a slight change so that 0 segments of a stacked bar are not shown at all if they have a zero height. It will be a part of the next beta.

Cheers.


Richard, RGraph Support

Help support RGraph - single site license only £99!
   www.rgraph.net/license#single-site
Posted by Piyush on 22nd July 2013
Cheers, Richard!

Add a reply




« Back to message list