Can anyone provide me a simple graph example on ruby =================================================== Say I have a table with two columns like this : Age Number of people --- ---------------- 1-20 35 21-40 48 41-60 22 61-80 18 Can anyone tell me, STEP BY STEP how to get this data in a graph (line-graph) in ruby by any tool or gem. Please help... -- 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?hl=en -~----------~----~----~----~------~----~------~--~---
gundestrup-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Mar-24 09:53 UTC
Re: Need a simple graph example on ruby
http://nubyonrails.com/pages/gruff regards /gundestrup On Mar 24, 10:37 am, Dibyendu Chatterjee <rails-mailing-l...@andreas- s.net> wrote:> Can anyone provide me a simple graph example on ruby > ===================================================> > Say I have a table with two columns like this : > > Age Number of people > --- ---------------- > 1-20 35 > 21-40 48 > 41-60 22 > 61-80 18 > > Can anyone tell me, STEP BY STEP how to get this data in a graph > (line-graph) in ruby by any tool or gem. > > Please help... > -- > Posted viahttp://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?hl=en -~----------~----~----~----~------~----~------~--~---
gundestrup-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> http://nubyonrails.com/pages/gruff > > regards > /gundestrup > > On Mar 24, 10:37 am, Dibyendu Chatterjee <rails-mailing-l...@andreas-ImageMagick and RMagick is not getting installed in our machine. We have Ruby version 1.8.6. There we got stuck. Please help with steps...how to go about.. -- 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?hl=en -~----------~----~----~----~------~----~------~--~---
http://code.google.com/apis/chart/ On Mar 24, 11:17 am, Dibyendu Chatterjee <rails-mailing-l...@andreas- s.net> wrote:> gundest...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > >http://nubyonrails.com/pages/gruff > > > regards > > /gundestrup > > > On Mar 24, 10:37 am, Dibyendu Chatterjee <rails-mailing-l...@andreas- > > ImageMagick and RMagick is not getting installed in our machine. We have > Ruby version 1.8.6. There we got stuck. Please help with steps...how to > go about.. > -- > Posted viahttp://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?hl=en -~----------~----~----~----~------~----~------~--~---
Peter wrote:> http://code.google.com/apis/chart/ > > On Mar 24, 11:17 am, Dibyendu Chatterjee <rails-mailing-l...@andreas-This is what I am facing the problem. Not being able to install rmagick. Pls help... Attachments: http://www.ruby-forum.com/attachment/1623/imagemagick.gif -- 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?hl=en -~----------~----~----~----~------~----~------~--~---
Peter wrote:> http://code.google.com/apis/chart/ > > On Mar 24, 11:17 am, Dibyendu Chatterjee <rails-mailing-l...@andreas-Great link Peter. Thanx. Cool looking charts. Now how to feed ruby data into it. -- 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?hl=en -~----------~----~----~----~------~----~------~--~---
Just read the API, it''s not very complicated. Google creates images for you, you just use an url in an image_tag with some variables added. There''s also a wrapper for it: http://code.google.com/p/google-charts-on-rails/> > > On Mar 24, 11:17 am, Dibyendu Chatterjee <rails-mailing-l...@andreas- > > Great link Peter. Thanx. Cool looking charts. Now how to feed ruby data > into it. > -- > Posted viahttp://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?hl=en -~----------~----~----~----~------~----~------~--~---