Jorge Rodriguez wrote:> I am making a stacked bar graph in Gruff. Could anyone help me by
> telling me how I can change the order in which the data is stacked. No
> matter what order I put the data in, I get the same result on the png
> picure. Any help would be much appreciated.
> Thanks.
Too late to help the original poster, but might be helpful for anyone
else like me who only finds this post when searching on this problem:
Gruff automatically sorts bars with largest average value in the back.
You can turn this off by specifying sort = false when setting up the
graph. ie
g = Gruff::StackedBar.new(800)
g.data(''Data Type 1'', values1)
g.data(''Data Type 2'', values2)
g.sort = false
-1R
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.