On 4 December 2011 11:52, CavalryJim <[email protected]> wrote: > > > On Dec 4, 2:07 am, Colin Law <[email protected]> wrote: >> On 3 December 2011 23:14, Leonardo Mateo <[email protected]> wrote: >> >> > Hi everyone, >> >> > I need to add some charts to a Rails 3.1 application. >> > I've used Gruff[1] in the past, and now, researching a bit, I found a >> > few options, the one I liked the most is Highcharts[2]. >> > The thing is they're two different approaches. I think, server side >> > approach might be easier to maintain, but client side one might >> > provide a better user experience. >> >> I have used flot (client side) with good results. > > I have used the GChart gem in a recent project with great success. It > allows you to tap into the power and flexibility of Google charts.
Power yes, flexibility no, you can only do what google charts provides, and if they change their API (or close it down) you would have to change your code (though they do say they guarantee three years backwards compatibility, just enough to get it all up and running and then forget how it is supposed to work). By using an open source jscript library (or similar server side code) you know that it will continue to work as intended as you have downloaded the code and it is entirely under your control. There is no chance of the API changing under your feet. Also, at least in theory, you can make it do anything you like by extending the code. I have just checked and it is 18 months since I developed the app using flot. Half way through the three years guaranteed compatibility if I had used google charts. Colin -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

