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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---