Hi- I did a search and found some old posts on the subject, however since these things change so rapidly, I''m wondering what the best options are for creating charts and plots in a Rails app? I saw sparklines in the Rails Cookbook and this seems sufficient, has anyone ever used this? Thanks for your feedback! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Jan 29, 2008, at 11:09 AM, pete wrote:> Hi- > > I did a search and found some old posts on the subject, however since > these things change so rapidly, I''m wondering what the best options > are for creating charts and plots in a Rails app? > > I saw sparklines in the Rails Cookbook and this seems sufficient, has > anyone ever used this? > > Thanks for your feedback!Sparklines are a very particular form of graph intended to be used like a "word" of text. If you''re intentions fit well within the restrictions, they can work very well. I actually contributed to Geoffery''s sparkline gem. Sparklines: theory and practice: http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR&topic_id=1 -Rob Rob Biedenharn http://agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I see, so they are typically small graphs? Actually, I think this will work really well for some of my other pages however I will need something to create larger "excel-like" charts. Any other suggestions? On Jan 29, 4:31 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> wrote:> On Jan 29, 2008, at 11:09 AM, pete wrote: > > > Hi- > > > I did a search and found some old posts on the subject, however since > > these things change so rapidly, I''m wondering what the best options > > are for creating charts and plots in a Rails app? > > > I saw sparklines in the Rails Cookbook and this seems sufficient, has > > anyone ever used this? > > > Thanks for your feedback! > > Sparklines are a very particular form of graph intended to be used > like a "word" of text. If you''re intentions fit well within the > restrictions, they can work very well. I actually contributed to > Geoffery''s sparkline gem. > > Sparklines: theory and practice:http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR&top... > > -Rob > > Rob Biedenharn http://agileconsultingllc.com > R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Anyone used Gruff? On Jan 29, 4:41 pm, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I see, so they are typically small graphs? Actually, I think this > will work really well for some of my other pages however I will need > something to create larger "excel-like" charts. > > Any other suggestions? > > On Jan 29, 4:31 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > wrote: > > > On Jan 29, 2008, at 11:09 AM, pete wrote: > > > > Hi- > > > > I did a search and found some old posts on the subject, however since > > > these things change so rapidly, I''m wondering what the best options > > > are for creating charts and plots in a Rails app? > > > > I saw sparklines in the Rails Cookbook and this seems sufficient, has > > > anyone ever used this? > > > > Thanks for your feedback! > > > Sparklines are a very particular form of graph intended to be used > > like a "word" of text. If you''re intentions fit well within the > > restrictions, they can work very well. I actually contributed to > > Geoffery''s sparkline gem. > > > Sparklines: theory and practice:http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR&top... > > > -Rob > > > Rob Biedenharn http://agileconsultingllc.com > > R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Yes, we use Gruff for our charts on SugarStats.com for the last few months but we''re about to update and move to a flash based graphing system (amCharts or FusionCharts). Gruff has been great for basic things. Another would be Scruffy which is similar to gruff but seems a bit easier and more flexible to work with. It also has graph combining options. Both use ImageMagick/ RMagick so they do server side proccess and take up resources. ImageMagick/RMagick from what I see/hear is notorious for leaking memory. I also think both solutions are a bit rigid in the amount of visual customization you can do with the graphs without extending each library and customizing to your own needs. Sparklines looks cool for its specific purpose, I''mma have to check it out. On Jan 29, 6:45 am, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Anyone used Gruff? > > On Jan 29, 4:41 pm, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I see, so they are typically small graphs? Actually, I think this > > will work really well for some of my other pages however I will need > > something to create larger "excel-like" charts. > > > Any other suggestions? > > > On Jan 29, 4:31 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > wrote: > > > > On Jan 29, 2008, at 11:09 AM, pete wrote: > > > > > Hi- > > > > > I did a search and found some old posts on the subject, however since > > > > these things change so rapidly, I''m wondering what the best options > > > > are for creating charts and plots in a Rails app? > > > > > I saw sparklines in the Rails Cookbook and this seems sufficient, has > > > > anyone ever used this? > > > > > Thanks for your feedback! > > > > Sparklines are a very particular form of graph intended to be used > > > like a "word" of text. If you''re intentions fit well within the > > > restrictions, they can work very well. I actually contributed to > > > Geoffery''s sparkline gem. > > > > Sparklines: theory and practice:http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR&top... > > > > -Rob > > > > Rob Biedenharn http://agileconsultingllc.com > > > R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hmm, do you have to install Image/RMagick to make Gruff, or Scruffy work? Thanks for your response. On Jan 29, 6:48 pm, "Marston A." <mars...-8Qo2DTIsO68RmelmmXo44Q@public.gmane.org> wrote:> Yes, we use Gruff for our charts on SugarStats.com for the last few > months but we''re about to update and move to a flash based graphing > system (amCharts or FusionCharts). > > Gruff has been great for basic things. Another would be Scruffy which > is similar to gruff but seems a bit easier and more flexible to work > with. It also has graph combining options. Both use ImageMagick/ > RMagick so they do server side proccess and take up resources. > ImageMagick/RMagick from what I see/hear is notorious for leaking > memory. I also think both solutions are a bit rigid in the amount of > visual customization you can do with the graphs without extending each > library and customizing to your own needs. > > Sparklines looks cool for its specific purpose, I''mma have to check it > out. > > On Jan 29, 6:45 am, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Anyone used Gruff? > > > On Jan 29, 4:41 pm, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > I see, so they are typically small graphs? Actually, I think this > > > will work really well for some of my other pages however I will need > > > something to create larger "excel-like" charts. > > > > Any other suggestions? > > > > On Jan 29, 4:31 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > > wrote: > > > > > On Jan 29, 2008, at 11:09 AM, pete wrote: > > > > > > Hi- > > > > > > I did a search and found some old posts on the subject, however since > > > > > these things change so rapidly, I''m wondering what the best options > > > > > are for creating charts and plots in a Rails app? > > > > > > I saw sparklines in the Rails Cookbook and this seems sufficient, has > > > > > anyone ever used this? > > > > > > Thanks for your feedback! > > > > > Sparklines are a very particular form of graph intended to be used > > > > like a "word" of text. If you''re intentions fit well within the > > > > restrictions, they can work very well. I actually contributed to > > > > Geoffery''s sparkline gem. > > > > > Sparklines: theory and practice:http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR&top... > > > > > -Rob > > > > > Rob Biedenharn http://agileconsultingllc.com > > > > R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Jan 29, 2008, at 1:59 PM, pete wrote:> > Hmm, do you have to install Image/RMagick to make Gruff, or Scruffy > work?Yes.> > > Thanks for your response. > > On Jan 29, 6:48 pm, "Marston A." <mars...-8Qo2DTIsO68RmelmmXo44Q@public.gmane.org> wrote: >> Yes, we use Gruff for our charts on SugarStats.com for the last few >> months but we''re about to update and move to a flash based graphing >> system (amCharts or FusionCharts). >> >> Gruff has been great for basic things. Another would be Scruffy >> which >> is similar to gruff but seems a bit easier and more flexible to work >> with. It also has graph combining options. Both use ImageMagick/ >> RMagick so they do server side proccess and take up resources. >> ImageMagick/RMagick from what I see/hear is notorious for leaking >> memory. I also think both solutions are a bit rigid in the amount of >> visual customization you can do with the graphs without extending >> each >> library and customizing to your own needs. >> >> Sparklines looks cool for its specific purpose, I''mma have to check >> it >> out. >> >> On Jan 29, 6:45 am, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >>> Anyone used Gruff? >> >>> On Jan 29, 4:41 pm, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >>>> I see, so they are typically small graphs? Actually, I think this >>>> will work really well for some of my other pages however I will >>>> need >>>> something to create larger "excel-like" charts. >> >>>> Any other suggestions? >> >>>> On Jan 29, 4:31 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> >>>> wrote: >> >>>>> On Jan 29, 2008, at 11:09 AM, pete wrote: >> >>>>>> Hi- >> >>>>>> I did a search and found some old posts on the subject, however >>>>>> since >>>>>> these things change so rapidly, I''m wondering what the best >>>>>> options >>>>>> are for creating charts and plots in a Rails app? >> >>>>>> I saw sparklines in the Rails Cookbook and this seems >>>>>> sufficient, has >>>>>> anyone ever used this? >> >>>>>> Thanks for your feedback! >> >>>>> Sparklines are a very particular form of graph intended to be used >>>>> like a "word" of text. If you''re intentions fit well within the >>>>> restrictions, they can work very well. I actually contributed to >>>>> Geoffery''s sparkline gem. >> >>>>> Sparklines: theory and practice:http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR&top >>>>> ... >> >>>>> -Rob >> >>>>> Rob Biedenharn http://agileconsultingllc.com >>>>> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I had a heck of a time getting RMagick to work on my Windows box. Does anyone know an easy way of installing this on RedHat Linux? On Jan 29, 7:04 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> wrote:> On Jan 29, 2008, at 1:59 PM, pete wrote: > > > > > Hmm, do you have to install Image/RMagick to make Gruff, or Scruffy > > work? > > Yes. > > > > > Thanks for your response. > > > On Jan 29, 6:48 pm, "Marston A." <mars...-8Qo2DTIsO68RmelmmXo44Q@public.gmane.org> wrote: > >> Yes, we use Gruff for our charts on SugarStats.com for the last few > >> months but we''re about to update and move to a flash based graphing > >> system (amCharts or FusionCharts). > > >> Gruff has been great for basic things. Another would be Scruffy > >> which > >> is similar to gruff but seems a bit easier and more flexible to work > >> with. It also has graph combining options. Both use ImageMagick/ > >> RMagick so they do server side proccess and take up resources. > >> ImageMagick/RMagick from what I see/hear is notorious for leaking > >> memory. I also think both solutions are a bit rigid in the amount of > >> visual customization you can do with the graphs without extending > >> each > >> library and customizing to your own needs. > > >> Sparklines looks cool for its specific purpose, I''mma have to check > >> it > >> out. > > >> On Jan 29, 6:45 am, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > >>> Anyone used Gruff? > > >>> On Jan 29, 4:41 pm, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > >>>> I see, so they are typically small graphs? Actually, I think this > >>>> will work really well for some of my other pages however I will > >>>> need > >>>> something to create larger "excel-like" charts. > > >>>> Any other suggestions? > > >>>> On Jan 29, 4:31 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > >>>> wrote: > > >>>>> On Jan 29, 2008, at 11:09 AM, pete wrote: > > >>>>>> Hi- > > >>>>>> I did a search and found some old posts on the subject, however > >>>>>> since > >>>>>> these things change so rapidly, I''m wondering what the best > >>>>>> options > >>>>>> are for creating charts and plots in a Rails app? > > >>>>>> I saw sparklines in the Rails Cookbook and this seems > >>>>>> sufficient, has > >>>>>> anyone ever used this? > > >>>>>> Thanks for your feedback! > > >>>>> Sparklines are a very particular form of graph intended to be used > >>>>> like a "word" of text. If you''re intentions fit well within the > >>>>> restrictions, they can work very well. I actually contributed to > >>>>> Geoffery''s sparkline gem. > > >>>>> Sparklines: theory and practice:http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR&top > >>>>> ... > > >>>>> -Rob > > >>>>> Rob Biedenharn http://agileconsultingllc.com > >>>>> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi, I use gruff quite a bit. There wasn''t too much to the install. On Ubuntu 7.10 I have the following packages installed imagemagick libmagick9 libmagick9-dev librmagick-ruby1.8 I''m sure I''m missing something but it isn''t too hard to get it running. Chris On Jan 29, 7:10 pm, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I had a heck of a time getting RMagick to work on my Windows box. > Does anyone know an easy way of installing this on RedHat Linux? > > On Jan 29, 7:04 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > wrote: > > > On Jan 29, 2008, at 1:59 PM, pete wrote: > > > > Hmm, do you have to install Image/RMagick to make Gruff, or Scruffy > > > work? > > > Yes. > > > > Thanks for your response. > > > > On Jan 29, 6:48 pm, "Marston A." <mars...-8Qo2DTIsO68RmelmmXo44Q@public.gmane.org> wrote: > > >> Yes, we use Gruff for our charts on SugarStats.com for the last few > > >> months but we''re about to update and move to a flash based graphing > > >> system (amCharts or FusionCharts). > > > >> Gruff has been great for basic things. Another would be Scruffy > > >> which > > >> is similar to gruff but seems a bit easier and more flexible to work > > >> with. It also has graph combining options. Both use ImageMagick/ > > >> RMagick so they do server side proccess and take up resources. > > >> ImageMagick/RMagick from what I see/hear is notorious for leaking > > >> memory. I also think both solutions are a bit rigid in the amount of > > >> visual customization you can do with the graphs without extending > > >> each > > >> library and customizing to your own needs. > > > >> Sparklines looks cool for its specific purpose, I''mma have to check > > >> it > > >> out. > > > >> On Jan 29, 6:45 am, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > >>> Anyone used Gruff? > > > >>> On Jan 29, 4:41 pm, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > >>>> I see, so they are typically small graphs? Actually, I think this > > >>>> will work really well for some of my other pages however I will > > >>>> need > > >>>> something to create larger "excel-like" charts. > > > >>>> Any other suggestions? > > > >>>> On Jan 29, 4:31 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > >>>> wrote: > > > >>>>> On Jan 29, 2008, at 11:09 AM, pete wrote: > > > >>>>>> Hi- > > > >>>>>> I did a search and found some old posts on the subject, however > > >>>>>> since > > >>>>>> these things change so rapidly, I''m wondering what the best > > >>>>>> options > > >>>>>> are for creating charts and plots in a Rails app? > > > >>>>>> I saw sparklines in the Rails Cookbook and this seems > > >>>>>> sufficient, has > > >>>>>> anyone ever used this? > > > >>>>>> Thanks for your feedback! > > > >>>>> Sparklines are a very particular form of graph intended to be used > > >>>>> like a "word" of text. If you''re intentions fit well within the > > >>>>> restrictions, they can work very well. I actually contributed to > > >>>>> Geoffery''s sparkline gem. > > > >>>>> Sparklines: theory and practice:http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR&top > > >>>>> ... > > > >>>>> -Rob > > > >>>>> Rob Biedenharn http://agileconsultingllc.com > > >>>>> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
You guys need to check my site and let me know if you like any of those graphs http://jackster.mobi Chris Mccauley wrote:> Hi, > > I use gruff quite a bit. There wasn''t too much to the install. On > Ubuntu 7.10 I have the following packages installed > > imagemagick > libmagick9 > libmagick9-dev > librmagick-ruby1.8 > > I''m sure I''m missing something but it isn''t too hard to get it > running. > > Chris-- 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 -~----------~----~----~----~------~----~------~--~---
Why not use the Google Chart API? http://code.google.com/apis/chart/ On Jan 29, 10:12 pm, jackster the jackle <rails-mailing-l...@andreas- s.net> wrote:> You guys need to check my site and let me know if you like any of those > graphs > > http://jackster.mobi > > Chris Mccauley wrote: > > Hi, > > > I use gruff quite a bit. There wasn''t too much to the install. On > > Ubuntu 7.10 I have the following packages installed > > > imagemagick > > libmagick9 > > libmagick9-dev > > librmagick-ruby1.8 > > > I''m sure I''m missing something but it isn''t too hard to get it > > running. > > > Chris > > -- > 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 -~----------~----~----~----~------~----~------~--~---
pete wrote:> I see, so they are typically small graphs? Actually, I think this > will work really well for some of my other pages however I will need > something to create larger "excel-like" charts. > > Any other suggestions? > > On Jan 29, 4:31 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org>I have a couple walk-throughs of various chart libraries (google charts, ziya and amcharts) that might help you out. http://chrisolsen.org/ -- 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 -~----------~----~----~----~------~----~------~--~---
Nice, I like the Google Charts. I think I''ll try this, along with Scruff...if I can ever get RMagick running :) Thanks everyone for your inputs! On Jan 30, 4:35 am, Chris Olsen <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> pete wrote: > > I see, so they are typically small graphs? Actually, I think this > > will work really well for some of my other pages however I will need > > something to create larger "excel-like" charts. > > > Any other suggestions? > > > On Jan 29, 4:31 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > I have a couple walk-throughs of various chart libraries (google charts, > ziya and amcharts) that might help you out. > > http://chrisolsen.org/ > > -- > 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 -~----------~----~----~----~------~----~------~--~---
One last question to get me running... I tried testing this after I installed the plugin... In view and then controller and nothing rendered? I also restarted the server... GoogleChart.pie(10,20,40,30).to_url What did I miss here? On Jan 30, 3:12 pm, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Nice, I like the GoogleCharts. I think I''ll try this, along with > Scruff...if I can ever get RMagick running :) > > Thanks everyone for your inputs! > > On Jan 30, 4:35 am, Chris Olsen <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > > pete wrote: > > > I see, so they are typically small graphs? Actually, I think this > > > will work really well for some of my other pages however I will need > > > something to create larger "excel-like"charts. > > > > Any other suggestions? > > > > On Jan 29, 4:31 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > > I have a couple walk-throughs of various chart libraries (googlecharts, > > ziya and amcharts) that might help you out. > > >http://chrisolsen.org/ > > > -- > > 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 -~----------~----~----~----~------~----~------~--~---
You left all this info (see bellow) intentionally? Cheers, Sazima params | session | env | request On Jan 29, 7:12 pm, jackster the jackle <rails-mailing-l...@andreas- s.net> wrote:> You guys need to check my site and let me know if you like any of those > graphs > > http://jackster.mobi > > Chris Mccauley wrote: > > Hi, > > > I use gruff quite a bit. There wasn''t too much to the install. On > > Ubuntu 7.10 I have the following packages installed > > > imagemagick > > libmagick9 > > libmagick9-dev > > librmagick-ruby1.8 > > > I''m sure I''m missing something but it isn''t too hard to get it > > running. > > > Chris > > -- > 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 -~----------~----~----~----~------~----~------~--~---
I''m guessing that you need: <%= image_tag GoogleChart.pie(10,20,40,30).to_url %> -Rob Rob Biedenharn http://agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org On Jan 30, 2008, at 10:21 AM, pete wrote:> One last question to get me running... > > I tried testing this after I installed the plugin... > > In view and then controller and nothing rendered? I also restarted > the server... > > GoogleChart.pie(10,20,40,30).to_url > > What did I miss here? > > On Jan 30, 3:12 pm, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Nice, I like the GoogleCharts. I think I''ll try this, along with >> Scruff...if I can ever get RMagick running :) >> >> Thanks everyone for your inputs! >> >> On Jan 30, 4:35 am, Chris Olsen <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> >> wrote: >> >>> pete wrote: >>>> I see, so they are typically small graphs? Actually, I think this >>>> will work really well for some of my other pages however I will >>>> need >>>> something to create larger "excel-like"charts. >> >>>> Any other suggestions? >> >>>> On Jan 29, 4:31 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> >> >>> I have a couple walk-throughs of various chart libraries >>> (googlecharts, >>> ziya and amcharts) that might help you out. >> >>> http://chrisolsen.org/--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I don''t think I understand what you mean? On Jan 30, 3:49 pm, Sazima <rsaz...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> You left all this info (see bellow) intentionally? > > Cheers, Sazima > > params | session | env | request > > On Jan 29, 7:12 pm, jackster the jackle <rails-mailing-l...@andreas- > > s.net> wrote: > > You guys need to check my site and let me know if you like any of those > > graphs > > >http://jackster.mobi > > > Chris Mccauley wrote: > > > Hi, > > > > I use gruff quite a bit. There wasn''t too much to the install. On > > > Ubuntu 7.10 I have the following packages installed > > > > imagemagick > > > libmagick9 > > > libmagick9-dev > > > librmagick-ruby1.8 > > > > I''m sure I''m missing something but it isn''t too hard to get it > > > running. > > > > Chris > > > -- > > 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 -~----------~----~----~----~------~----~------~--~---
Interesting, it looks like if I use image_tag, it creates a blank space where the chart should be, but there is nothing there? On Jan 30, 3:52 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> wrote:> I''m guessing that you need: > > <%= image_tag GoogleChart.pie(10,20,40,30).to_url %> > > -Rob > > Rob Biedenharn http://agileconsultingllc.com > R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > > On Jan 30, 2008, at 10:21 AM, pete wrote: > > > One last question to get me running... > > > I tried testing this after I installed the plugin... > > > In view and then controller and nothing rendered? I also restarted > > the server... > > > GoogleChart.pie(10,20,40,30).to_url > > > What did I miss here? > > > On Jan 30, 3:12 pm, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Nice, I like the GoogleCharts. I think I''ll try this, along with > >> Scruff...if I can ever get RMagick running :) > > >> Thanks everyone for your inputs! > > >> On Jan 30, 4:35 am, Chris Olsen <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > >> wrote: > > >>> pete wrote: > >>>> I see, so they are typically small graphs? Actually, I think this > >>>> will work really well for some of my other pages however I will > >>>> need > >>>> something to create larger "excel-like"charts. > > >>>> Any other suggestions? > > >>>> On Jan 29, 4:31 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > >>> I have a couple walk-throughs of various chart libraries > >>> (googlecharts, > >>> ziya and amcharts) that might help you out. > > >>>http://chrisolsen.org/--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
pete wrote:> One last question to get me running... > > I tried testing this after I installed the plugin... > > In view and then controller and nothing rendered? I also restarted > the server... > > GoogleChart.pie(10,20,40,30).to_url > > What did I miss here?I found the same issue when testing Google Charts on Rails, which is why I liked GoogleCharts better. -- 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 -~----------~----~----~----~------~----~------~--~---
What does the page source look like? Does the URL for the image src look OK? Does it need to have &''s escaped to &''s? -Rob Rob Biedenharn http://agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org On Jan 30, 2008, at 1:00 PM, pete wrote:> Interesting, it looks like if I use image_tag, it creates a blank > space where the chart should be, but there is nothing there? > > On Jan 30, 3:52 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > wrote: >> I''m guessing that you need: >> >> <%= image_tag GoogleChart.pie(10,20,40,30).to_url %> >> >> -Rob >> >> Rob Biedenharn http://agileconsultingllc.com >> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org >> >> On Jan 30, 2008, at 10:21 AM, pete wrote: >> >>> One last question to get me running... >> >>> I tried testing this after I installed the plugin... >> >>> In view and then controller and nothing rendered? I also restarted >>> the server... >> >>> GoogleChart.pie(10,20,40,30).to_url >> >>> What did I miss here?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
<img alt="Chart?chs=200x200&cht=p&chd=t:10,20,40,30" src="http://chart.apis.google.com/chart? chs=200x200&cht=p&chd=t:10,20,40,30.png" /> Looks like it needs to be escaped? On Jan 30, 6:17 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> wrote:> What does the page source look like? Does the URL for the image src > look OK? Does it need to have &''s escaped to &''s? > > -Rob > > Rob Biedenharn http://agileconsultingllc.com > R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > > On Jan 30, 2008, at 1:00 PM, pete wrote: > > > Interesting, it looks like if I use image_tag, it creates a blank > > space where the chart should be, but there is nothing there? > > > On Jan 30, 3:52 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > wrote: > >> I''m guessing that you need: > > >> <%= image_tag GoogleChart.pie(10,20,40,30).to_url %> > > >> -Rob > > >> Rob Biedenharn http://agileconsultingllc.com > >> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > > >> On Jan 30, 2008, at 10:21 AM, pete wrote: > > >>> One last question to get me running... > > >>> I tried testing this after I installed the plugin... > > >>> In view and then controller and nothing rendered? I also restarted > >>> the server... > > >>> GoogleChart.pie(10,20,40,30).to_url > > >>> What did I miss here?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ah! You''re on Rails 1.2.x, right? See that ''.png'' at the end, you don''t want that. Unless you actually depend on rails tacking that on for you, go to vendor/rails/actionpack/lib/action_view/helpers/ asset_tag_helper.rb and change image_path to be: def image_path(source) # unless (source.split("/").last || source).include? (".") || source.blank? # ActiveSupport::Deprecation.warn( # "You''ve called image_path with a source that doesn''t include an extension. " + # "In Rails 2.0, that will not result in .png automatically being appended. " + # "So you should call image_path(''#{source}.png'') instead", caller # ) # end compute_public_path(source, ''images'') end and all should be OK. (the &''s are already escaped) You probably also want to provide your own :alt => "description of the chart" so it makes sense if Google doesn''t return an image (or just takes a while). -Rob On Jan 30, 2008, at 1:30 PM, pete wrote:> > <img alt="Chart?chs=200x200&cht=p&chd=t:10,20,40,30" > src="http://chart.apis.google.com/chart? > chs=200x200&cht=p&chd=t:10,20,40,30.png" /> > > Looks like it needs to be escaped? > > On Jan 30, 6:17 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > wrote: >> What does the page source look like? Does the URL for the image src >> look OK? Does it need to have &''s escaped to &''s? >> >> -Rob >> >> Rob Biedenharn http://agileconsultingllc.com >> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org >> >> On Jan 30, 2008, at 1:00 PM, pete wrote: >> >>> Interesting, it looks like if I use image_tag, it creates a blank >>> space where the chart should be, but there is nothing there? >> >>> On Jan 30, 3:52 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> >>> wrote: >>>> I''m guessing that you need: >> >>>> <%= image_tag GoogleChart.pie(10,20,40,30).to_url %> >> >>>> -Rob >> >>>> Rob Biedenharn http://agileconsultingllc.com >>>> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org >> >>>> On Jan 30, 2008, at 10:21 AM, pete wrote: >> >>>>> One last question to get me running... >> >>>>> I tried testing this after I installed the plugin... >> >>>>> In view and then controller and nothing rendered? I also >>>>> restarted >>>>> the server... >> >>>>> GoogleChart.pie(10,20,40,30).to_url >> >>>>> What did I miss here? > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Yes, I am...should I upgrade? If I modify the asset_tag_helper, would this have any negative affect on anything else? On Jan 30, 6:58 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> wrote:> Ah! You''re on Rails 1.2.x, right? See that ''.png'' at the end, you > don''t want that. Unless you actually depend on rails tacking that on > for you, go to vendor/rails/actionpack/lib/action_view/helpers/ > asset_tag_helper.rb and change image_path to be: > > def image_path(source) > # unless (source.split("/").last || source).include? > (".") || source.blank? > # ActiveSupport::Deprecation.warn( > # "You''ve called image_path with a source that > doesn''t include an extension. " + > # "In Rails 2.0, that will not result in .png > automatically being appended. " + > # "So you should call image_path(''#{source}.png'') > instead", caller > # ) > # end > > compute_public_path(source, ''images'') > end > > and all should be OK. (the &''s are already escaped) > > You probably also want to provide your own :alt => "description of the > chart" so it makes sense if Google doesn''t return an image (or just > takes a while). > > -Rob > > On Jan 30, 2008, at 1:30 PM, pete wrote: > > > > > <img alt="Chart?chs=200x200&cht=p&chd=t:10,20,40,30" > > src="http://chart.apis.google.com/chart? > > chs=200x200&cht=p&chd=t:10,20,40,30.png" /> > > > Looks like it needs to be escaped? > > > On Jan 30, 6:17 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > wrote: > >> What does the page source look like? Does the URL for the image src > >> look OK? Does it need to have &''s escaped to &''s? > > >> -Rob > > >> Rob Biedenharn http://agileconsultingllc.com > >> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > > >> On Jan 30, 2008, at 1:00 PM, pete wrote: > > >>> Interesting, it looks like if I use image_tag, it creates a blank > >>> space where the chart should be, but there is nothing there? > > >>> On Jan 30, 3:52 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > >>> wrote: > >>>> I''m guessing that you need: > > >>>> <%= image_tag GoogleChart.pie(10,20,40,30).to_url %> > > >>>> -Rob > > >>>> Rob Biedenharn http://agileconsultingllc.com > >>>> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > > >>>> On Jan 30, 2008, at 10:21 AM, pete wrote: > > >>>>> One last question to get me running... > > >>>>> I tried testing this after I installed the plugin... > > >>>>> In view and then controller and nothing rendered? I also > >>>>> restarted > >>>>> the server... > > >>>>> GoogleChart.pie(10,20,40,30).to_url > > >>>>> What did I miss here?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ok, I commented out the warning and restarted the server...still no image. On Jan 30, 7:29 pm, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Yes, I am...should I upgrade? > > If I modify the asset_tag_helper, would this have any negative affect > on anything else? > > On Jan 30, 6:58 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > wrote: > > > Ah! You''re on Rails 1.2.x, right? See that ''.png'' at the end, you > > don''t want that. Unless you actually depend on rails tacking that on > > for you, go to vendor/rails/actionpack/lib/action_view/helpers/ > > asset_tag_helper.rb and change image_path to be: > > > def image_path(source) > > # unless (source.split("/").last || source).include? > > (".") || source.blank? > > # ActiveSupport::Deprecation.warn( > > # "You''ve called image_path with a source that > > doesn''t include an extension. " + > > # "In Rails 2.0, that will not result in .png > > automatically being appended. " + > > # "So you should call image_path(''#{source}.png'') > > instead", caller > > # ) > > # end > > > compute_public_path(source, ''images'') > > end > > > and all should be OK. (the &''s are already escaped) > > > You probably also want to provide your own :alt => "description of the > > chart" so it makes sense if Google doesn''t return an image (or just > > takes a while). > > > -Rob > > > On Jan 30, 2008, at 1:30 PM, pete wrote: > > > > <img alt="Chart?chs=200x200&cht=p&chd=t:10,20,40,30" > > > src="http://chart.apis.google.com/chart? > > > chs=200x200&cht=p&chd=t:10,20,40,30.png" /> > > > > Looks like it needs to be escaped? > > > > On Jan 30, 6:17 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > > wrote: > > >> What does the page source look like? Does the URL for the image src > > >> look OK? Does it need to have &''s escaped to &''s? > > > >> -Rob > > > >> Rob Biedenharn http://agileconsultingllc.com > > >> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > > > >> On Jan 30, 2008, at 1:00 PM, pete wrote: > > > >>> Interesting, it looks like if I use image_tag, it creates a blank > > >>> space where the chart should be, but there is nothing there? > > > >>> On Jan 30, 3:52 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > >>> wrote: > > >>>> I''m guessing that you need: > > > >>>> <%= image_tag GoogleChart.pie(10,20,40,30).to_url %> > > > >>>> -Rob > > > >>>> Rob Biedenharn http://agileconsultingllc.com > > >>>> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > > > >>>> On Jan 30, 2008, at 10:21 AM, pete wrote: > > > >>>>> One last question to get me running... > > > >>>>> I tried testing this after I installed the plugin... > > > >>>>> In view and then controller and nothing rendered? I also > > >>>>> restarted > > >>>>> the server... > > > >>>>> GoogleChart.pie(10,20,40,30).to_url > > > >>>>> What did I miss here?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
And I missed updating the compute_public_path(source, ''images'') line, now that is up-to-date and I get an error ("wrong number of arguments (2 for 3)") for this: <%= image_path GoogleChart.pie(10,20,40,30).to_url %> or also tried... <%= image_tag GoogleChart.pie(10,20,40,30).to_url %> On Jan 30, 7:36 pm, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Ok, I commented out the warning and restarted the server...still no > image. > > On Jan 30, 7:29 pm, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Yes, I am...should I upgrade? > > > If I modify the asset_tag_helper, would this have any negative affect > > on anything else? > > > On Jan 30, 6:58 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > wrote: > > > > Ah! You''re on Rails 1.2.x, right? See that ''.png'' at the end, you > > > don''t want that. Unless you actually depend on rails tacking that on > > > for you, go to vendor/rails/actionpack/lib/action_view/helpers/ > > > asset_tag_helper.rb and change image_path to be: > > > > def image_path(source) > > > # unless (source.split("/").last || source).include? > > > (".") || source.blank? > > > # ActiveSupport::Deprecation.warn( > > > # "You''ve called image_path with a source that > > > doesn''t include an extension. " + > > > # "In Rails 2.0, that will not result in .png > > > automatically being appended. " + > > > # "So you should call image_path(''#{source}.png'') > > > instead", caller > > > # ) > > > # end > > > > compute_public_path(source, ''images'') > > > end > > > > and all should be OK. (the &''s are already escaped) > > > > You probably also want to provide your own :alt => "description of the > > > chart" so it makes sense if Google doesn''t return an image (or just > > > takes a while). > > > > -Rob > > > > On Jan 30, 2008, at 1:30 PM, pete wrote: > > > > > <img alt="Chart?chs=200x200&cht=p&chd=t:10,20,40,30" > > > > src="http://chart.apis.google.com/chart? > > > > chs=200x200&cht=p&chd=t:10,20,40,30.png" /> > > > > > Looks like it needs to be escaped? > > > > > On Jan 30, 6:17 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > > > wrote: > > > >> What does the page source look like? Does the URL for the image src > > > >> look OK? Does it need to have &''s escaped to &''s? > > > > >> -Rob > > > > >> Rob Biedenharn http://agileconsultingllc.com > > > >> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > > > > >> On Jan 30, 2008, at 1:00 PM, pete wrote: > > > > >>> Interesting, it looks like if I use image_tag, it creates a blank > > > >>> space where the chart should be, but there is nothing there? > > > > >>> On Jan 30, 3:52 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > > >>> wrote: > > > >>>> I''m guessing that you need: > > > > >>>> <%= image_tag GoogleChart.pie(10,20,40,30).to_url %> > > > > >>>> -Rob > > > > >>>> Rob Biedenharn http://agileconsultingllc.com > > > >>>> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > > > > >>>> On Jan 30, 2008, at 10:21 AM, pete wrote: > > > > >>>>> One last question to get me running... > > > > >>>>> I tried testing this after I installed the plugin... > > > > >>>>> In view and then controller and nothing rendered? I also > > > >>>>> restarted > > > >>>>> the server... > > > > >>>>> GoogleChart.pie(10,20,40,30).to_url > > > > >>>>> What did I miss here?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
You can also just use the api without the rails plugin, it''n not very complicated. On Jan 30, 8:49 pm, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> And I missed updating the compute_public_path(source, ''images'') line, > now that is up-to-date and I get an error ("wrong number of arguments > (2 for 3)") for this: > > <%= image_path GoogleChart.pie(10,20,40,30).to_url %> > or also tried... > <%= image_tag GoogleChart.pie(10,20,40,30).to_url %> > > On Jan 30, 7:36 pm, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Ok, I commented out the warning and restarted the server...still no > > image. > > > On Jan 30, 7:29 pm, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Yes, I am...should I upgrade? > > > > If I modify the asset_tag_helper, would this have any negative affect > > > on anything else? > > > > On Jan 30, 6:58 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > > wrote: > > > > > Ah! You''re on Rails 1.2.x, right? See that ''.png'' at the end, you > > > > don''t want that. Unless you actually depend on rails tacking that on > > > > for you, go to vendor/rails/actionpack/lib/action_view/helpers/ > > > > asset_tag_helper.rb and change image_path to be: > > > > > def image_path(source) > > > > # unless (source.split("/").last || source).include? > > > > (".") || source.blank? > > > > # ActiveSupport::Deprecation.warn( > > > > # "You''ve called image_path with a source that > > > > doesn''t include an extension. " + > > > > # "In Rails 2.0, that will not result in .png > > > > automatically being appended. " + > > > > # "So you should call image_path(''#{source}.png'') > > > > instead", caller > > > > # ) > > > > # end > > > > > compute_public_path(source, ''images'') > > > > end > > > > > and all should be OK. (the &''s are already escaped) > > > > > You probably also want to provide your own :alt => "description of the > > > > chart" so it makes sense if Google doesn''t return an image (or just > > > > takes a while). > > > > > -Rob > > > > > On Jan 30, 2008, at 1:30 PM, pete wrote: > > > > > > <img alt="Chart?chs=200x200&cht=p&chd=t:10,20,40,30" > > > > > src="http://chart.apis.google.com/chart? > > > > > chs=200x200&cht=p&chd=t:10,20,40,30.png" /> > > > > > > Looks like it needs to be escaped? > > > > > > On Jan 30, 6:17 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > > > > wrote: > > > > >> What does the page source look like? Does the URL for the image src > > > > >> look OK? Does it need to have &''s escaped to &''s? > > > > > >> -Rob > > > > > >> Rob Biedenharn http://agileconsultingllc.com > > > > >> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > > > > > >> On Jan 30, 2008, at 1:00 PM, pete wrote: > > > > > >>> Interesting, it looks like if I use image_tag, it creates a blank > > > > >>> space where the chart should be, but there is nothing there? > > > > > >>> On Jan 30, 3:52 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > > > >>> wrote: > > > > >>>> I''m guessing that you need: > > > > > >>>> <%= image_tag GoogleChart.pie(10,20,40,30).to_url %> > > > > > >>>> -Rob > > > > > >>>> Rob Biedenharn http://agileconsultingllc.com > > > > >>>> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > > > > > >>>> On Jan 30, 2008, at 10:21 AM, pete wrote: > > > > > >>>>> One last question to get me running... > > > > > >>>>> I tried testing this after I installed the plugin... > > > > > >>>>> In view and then controller and nothing rendered? I also > > > > >>>>> restarted > > > > >>>>> the server... > > > > > >>>>> GoogleChart.pie(10,20,40,30).to_url > > > > > >>>>> What did I miss here?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Update? Not necessarily (and certainly not just for this!), I still have clients on 1.1.6 and none of my clients are on Rails 2.x yet. Try these: <a href="<%= GoogleChart.pie(10,20,40,30).to_url %>">link to chart</a> <img src="<%= GoogleChart.pie(10,20,40,30).to_url %>" alt="Google pie chart" /> which should be what you''d get from: <%= link_to ''link to chart'', GoogleChart.pie(10,20,40,30).to_url %> <%= image_tag GoogleChart.pie(10,20,40,30).to_url, :alt => "Google pie chart" %> You could even add the 200x200 size, but that''s a frivolous detail until it works. The URL works when I paste it into a browser so it should be working. -Rob On Jan 30, 2008, at 2:49 PM, pete wrote:> > And I missed updating the compute_public_path(source, ''images'') line, > now that is up-to-date and I get an error ("wrong number of arguments > (2 for 3)") for this: > > <%= image_path GoogleChart.pie(10,20,40,30).to_url %> > or also tried... > <%= image_tag GoogleChart.pie(10,20,40,30).to_url %> > > On Jan 30, 7:36 pm, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Ok, I commented out the warning and restarted the server...still no >> image. >> >> On Jan 30, 7:29 pm, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >>> Yes, I am...should I upgrade? >> >>> If I modify the asset_tag_helper, would this have any negative >>> affect >>> on anything else? >> >>> On Jan 30, 6:58 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> >>> wrote: >> >>>> Ah! You''re on Rails 1.2.x, right? See that ''.png'' at the end, you >>>> don''t want that. Unless you actually depend on rails tacking >>>> that on >>>> for you, go to vendor/rails/actionpack/lib/action_view/helpers/ >>>> asset_tag_helper.rb and change image_path to be: >> >>>> def image_path(source) >>>> # unless (source.split("/").last || >>>> source).include? >>>> (".") || source.blank? >>>> # ActiveSupport::Deprecation.warn( >>>> # "You''ve called image_path with a source that >>>> doesn''t include an extension. " + >>>> # "In Rails 2.0, that will not result in .png >>>> automatically being appended. " + >>>> # "So you should call >>>> image_path(''#{source}.png'') >>>> instead", caller >>>> # ) >>>> # end >> >>>> compute_public_path(source, ''images'') >>>> end >> >>>> and all should be OK. (the &''s are already escaped) >> >>>> You probably also want to provide your own :alt => "description >>>> of the >>>> chart" so it makes sense if Google doesn''t return an image (or just >>>> takes a while). >> >>>> -Rob >> >>>> On Jan 30, 2008, at 1:30 PM, pete wrote: >> >>>>> <img alt="Chart?chs=200x200&cht=p&chd=t:10,20,40,30" >>>>> src="http://chart.apis.google.com/chart? >>>>> chs=200x200&cht=p&chd=t:10,20,40,30.png" /> >> >>>>> Looks like it needs to be escaped? >> >>>>> On Jan 30, 6:17 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> >>>>> wrote: >>>>>> What does the page source look like? Does the URL for the >>>>>> image src >>>>>> look OK? Does it need to have &''s escaped to &''s? >> >>>>>> -Rob >> >>>>>> Rob Biedenharn http://agileconsultingllc.com >>>>>> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org >> >>>>>> On Jan 30, 2008, at 1:00 PM, pete wrote: >> >>>>>>> Interesting, it looks like if I use image_tag, it creates a >>>>>>> blank >>>>>>> space where the chart should be, but there is nothing there? >> >>>>>>> On Jan 30, 3:52 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> >>>>>>> wrote: >>>>>>>> I''m guessing that you need: >> >>>>>>>> <%= image_tag GoogleChart.pie(10,20,40,30).to_url %> >> >>>>>>>> -Rob >> >>>>>>>> Rob Biedenharn http://agileconsultingllc.com >>>>>>>> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org >> >>>>>>>> On Jan 30, 2008, at 10:21 AM, pete wrote: >> >>>>>>>>> One last question to get me running... >> >>>>>>>>> I tried testing this after I installed the plugin... >> >>>>>>>>> In view and then controller and nothing rendered? I also >>>>>>>>> restarted >>>>>>>>> the server... >> >>>>>>>>> GoogleChart.pie(10,20,40,30).to_url >> >>>>>>>>> What did I miss here? > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi pete, First of all, I believe you might be using an old or outdated version of the GoogleCharts plugin because you are using GoogleChart.pie rather than Gchart.pie. You can get the latest version from this site: A Google Chart URL should like this once generated (there is no .png extension): <img src="http://chart.apis.google.com/chart? cht=lc&chs=200x125&chd=s:helloWorld&chxt=x,y&chxl=0:|Mar|Apr|May|June| July|1:||50+Kb" title="Custom" alt="Custom" /> If possible, I would just recommend upgrading to a newer Rails. I think Rob is right and Rails is automatically appending the .png extension thereby breaking the url. You can test this by not using image_tag: <img src="<%= Gchart.pie(:data => [20, 35, 45]) %>" /> Jason On Jan 30, 11:49 am, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> And I missed updating the compute_public_path(source, ''images'') line, > now that is up-to-date and I get an error ("wrong number of arguments > (2 for 3)") for this: > > <%= image_path GoogleChart.pie(10,20,40,30).to_url %> > or also tried... > <%= image_tag GoogleChart.pie(10,20,40,30).to_url %> > > On Jan 30, 7:36 pm, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Ok, I commented out the warning and restarted the server...still no > > image. > > > On Jan 30, 7:29 pm, pete <peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Yes, I am...should I upgrade? > > > > If I modify the asset_tag_helper, would this have any negative affect > > > on anything else? > > > > On Jan 30, 6:58 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > > wrote: > > > > > Ah! You''re on Rails 1.2.x, right? See that ''.png'' at the end, you > > > > don''t want that. Unless you actually depend on rails tacking that on > > > > for you, go to vendor/rails/actionpack/lib/action_view/helpers/ > > > > asset_tag_helper.rb and change image_path to be: > > > > > def image_path(source) > > > > # unless (source.split("/").last || source).include? > > > > (".") || source.blank? > > > > # ActiveSupport::Deprecation.warn( > > > > # "You''ve called image_path with a source that > > > > doesn''t include an extension. " + > > > > # "In Rails 2.0, that will not result in .png > > > > automatically being appended. " + > > > > # "So you should call image_path(''#{source}.png'') > > > > instead", caller > > > > # ) > > > > # end > > > > > compute_public_path(source, ''images'') > > > > end > > > > > and all should be OK. (the &''s are already escaped) > > > > > You probably also want to provide your own :alt => "description of the > > > > chart" so it makes sense if Google doesn''t return an image (or just > > > > takes a while). > > > > > -Rob > > > > > On Jan 30, 2008, at 1:30 PM, pete wrote: > > > > > > <img alt="Chart?chs=200x200&cht=p&chd=t:10,20,40,30" > > > > > src="http://chart.apis.google.com/chart? > > > > > chs=200x200&cht=p&chd=t:10,20,40,30.png" /> > > > > > > Looks like it needs to be escaped? > > > > > > On Jan 30, 6:17 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > > > > wrote: > > > > >> What does the page source look like? Does the URL for the image src > > > > >> look OK? Does it need to have &''s escaped to &''s? > > > > > >> -Rob > > > > > >> Rob Biedenharn http://agileconsultingllc.com > > > > >> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > > > > > >> On Jan 30, 2008, at 1:00 PM, pete wrote: > > > > > >>> Interesting, it looks like if I use image_tag, it creates a blank > > > > >>> space where the chart should be, but there is nothing there? > > > > > >>> On Jan 30, 3:52 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > > > >>> wrote: > > > > >>>> I''m guessing that you need: > > > > > >>>> <%= image_tag GoogleChart.pie(10,20,40,30).to_url %> > > > > > >>>> -Rob > > > > > >>>> Rob Biedenharn http://agileconsultingllc.com > > > > >>>> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > > > > > >>>> On Jan 30, 2008, at 10:21 AM, pete wrote: > > > > > >>>>> One last question to get me running... > > > > > >>>>> I tried testing this after I installed the plugin... > > > > > >>>>> In view and then controller and nothing rendered? I also > > > > >>>>> restarted > > > > >>>>> the server... > > > > > >>>>> GoogleChart.pie(10,20,40,30).to_url > > > > > >>>>> What did I miss here?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Tue, 2008-01-29 at 08:09 -0800, pete wrote:> I did a search and found some old posts on the subject, however since > these things change so rapidly, I''m wondering what the best options > are for creating charts and plots in a Rails app?I have used Gruff with great success, and being Ruby, it is also very easy to extend. For prettier graphs, and a much more compelete graphing library, I use JRuby with JFreeChart. Works very well and compares very well to Gruff speedwise. Uwe --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
can you post a link to some examples? thanks jackster Uwe Kubosch wrote:> On Tue, 2008-01-29 at 08:09 -0800, pete wrote: >> I did a search and found some old posts on the subject, however since >> these things change so rapidly, I''m wondering what the best options >> are for creating charts and plots in a Rails app? > > I have used Gruff with great success, and being Ruby, it is also very > easy to extend. For prettier graphs, and a much more compelete graphing > library, I use JRuby with JFreeChart. Works very well and compares very > well to Gruff speedwise. > > > Uwe-- 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 -~----------~----~----~----~------~----~------~--~---