0

I am using RGraph to make a stacked bar graph based on this example. When I have more than sixteen groups, I get this error:

Error: attribute width: A negative value is not valid. ("-0.882352941176471")

I have also tried increasing the number of groups with this similar graph. With this one, I cannot have more than eight groups. Why is this happening? Could it be a limitation with RGraph?

jtmaher2
  • 482
  • 5
  • 19

1 Answers1

0

This was happening, because of how my div width was set to a narrow option than was needed in order to contain each bar. In order to fix this problem, I increased the width of the enclosing div.

jtmaher2
  • 482
  • 5
  • 19