Gruff : SideStackedBar "no data" error

Hello,

I use Gruff to generate a SideStackedBar in a view using Carlos
Villela’s helper (THX).

When the first column (“false”) has the value “0”, the graph says “no
data”.

<%= gruff_tag({“Test” => [0,1]}, {:labels => {0 => “false”, 1 =>
“true”}, :title => “True or False Graph”}) %>

When the first column has anyelse value, the graph is OK (even if the
second column is at “0”).

<%= gruff_tag({“Test” => [1,0]}, {:labels => {0 => “false”, 1 =>
“true”}, :title => “True or False Graph”}) %>

Could someone help me?

THX

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs