I have been waiting for something like this one tutorial. Thanks!
resources: http://railcsasts.com/episodes/205-unobtrusive-javascript isn't valid link, please fix it
The domain in the link seems to be a typo.
I'll have to check this one out :).
You have an uncanny knack for picking up on some large topic discussed in the community each week and making a great Railscast out of it! Thanks Ryan!
I like jqPlot. Nice plugin architecture which can easily be extended.
The forum response is also quite good: http://www.jqplot.com/
Great one as usual Ryan,
Thank you.
Just a small note about a problem with my firefox playing the video, and don't know if anyone else had that.
My firefox stops playing the video about 4 minutes before the end, just before displaying the console with all the different queries.
It's playing fine when I download it on my pc, and cannot remember having a similar problem with previous episodes.
Thanks again for the episodes Ryan.
Google chart api is pretty nice too
http://code.google.com/apis/charttools/index.html
i use xml/swf charts ( http://www.maani.us/xml_charts/ ) and it's good too (there is a plugin too for rails)
So I guess their aren't to many rails charts available eh? I guess it makes more sense that javascript handles this because of the animation involved but it would be nice to have a rails option where you can simply hook into jquery or something to spice it up.
i use Google Visualization to generate my charts, http://code.google.com/apis/visualization/documentation/gallery.html
Javascript API.
Very nice railscast.
Hi Ryan, thank you very much for the mention of lazy_high_charts
best regards
There went ColdFusion developers' last excuse (cfchart) to switch to Rails. :-)
@mikhailov, @Aaron, thanks, fixed!
@valley, cool, I haven't seen jqPlot before. It looks very nice. I'll add it to the links.
@Kosmas, if it always stops at 4 minutes then it sounds like a caching issue. The connection may have been dropped at that point and it continues to load from cache.
@Branden, there are a number of Rails plugins to hook into various charting libraries, but I find it often easier to interact directly with them.
i've used jqplot before and it's really easy to customize. and thanks Ryan for this other option. :D keep this up!
Exactly what I was looking for at that exact time as usual! Great stuff
Hi Ryan!
Have you ever met FusionCharts Free http://www.fusioncharts.com/free/ ?
I like so much how javascript libraries coming to be nice DSL's.
Thank you for this cool railscast!
Thanks again Ryan for another great and informative railscast. Looking forward to playing around with the graphing libraries.
"Railscasts make Mondays worth looking forward to!"
Unfortunately just too late; I just finished a project in which this would have been very useful!
Not sure if its my setup: Ubuntu 9.10, but playing this with VLC 1.0.2 I keep getting glitches.
Apart from that, thanks Ryan, great railscast.
I will have to generate some charts in the near future. So: Thank you once more.
Since I also will have to generate PDFs from the charts and I would like to use PDFKit for it, I did a simple test. I converted examples from the mentioned libraries with wkhtmltopdf (on the commandline, no fancy rails stuff, no additional parameters).
It seems, that only Highcharts generates vector shapes. All others generate low-res images.
If someone else is interested. Here are the PDFs:
http://qooy.com/files/DBX1VHNU/chart-pdf.zip
that's definitely one of your most awesome screencasts! keep on rocking, ryan.
Nice webcast, There is also another library that works nice with Ruby, http://teethgrinder.co.uk/open-flash-chart-2/
The site seems to be down, however.
I have a database table which is updated every 10sec, would love to see a dynamically updated page that keeps the graph information up to date.
@dtolj, I just noticed this in highchart's demo's:
http://www.highcharts.com/demo/?example=dynamic-update
Looks like the demo is just generating random points, but you may be able to tweak it for your needs.
At New Relic, we recently started using HighCharts to replace the Flash charts that have been in use for a while.
Everyone I've talked to about the new charts really loves them and they'll soon be the default in RPM.
The ability to toggle on and off a series of data is really sweet for complex charts, and since it's just JavaScript, they work really well on the iPhone and iPad, too.
Great screenscast!! However, I would really love to see how I can select a timeline (week, month, year, custom dates) ...
Maybe in another one. Thank you!
Hey Ryan - as always a great cast :D
Lately I was refactoring the google_visualr rails plugin - a ruby wrapper for the google visualization api.
a gem could come up soon - clone the code from http://github.com/msalzburg/google_visualr
Thanks for this Ryan! Seeing it is so easy, maybe i am going to put this in some projects of mine.
I think railscasts.com is so usefull for this, showing the people all different kind of tactics and solutions to fix problems.
Thanks a lot!
Thanks Ryan, highcharts is awesome! I have used it quite a bit in the last couple of months - in fact I made a plugin (its rough haha) but can be found here http://github.com/loudpixel/highcharts-rails.
Ryan,
FYI: Mike Nelson has implemented a Highcharts Prototype adapter.
http://github.com/mnelson/Prototype-Highcharts-Adapter/blob/master/highcharts-adapter.js
It is a nice recipes.
When i use Postgre as devlopment database ,Order.group("date(purchased_at)").select("purchased_at, sum(total_price) as total_price").first.total_price.to_f
will throw erro , i am just new user to Postgre, will someone help me ?
I used used this rails plugin
http://github.com/Bantik/seer
It's another wrapper for the Google Visualization API. Works great.
I've done a lot of charting for one of my projects:
* I need PDF reports, too. Javascript libraries are great for interactive in-the-page charts, but exporting them to a file and putting in a PDF isn't always the easiest.
* The google visualization API is okay, and you can grab the image from the URL and put it in a PDF.
* I like ChartDirector, easy to set up on a server, good ruby bindings and a responsive developer for questions.
Some JS libraries provide a .toPNG() function that could be used to grab the graph, so that's a possibility, but it might make more sense to use something that generates images, especially if you need crisp high-res images.
@Wes Garrison
What about generating PDF-Report from HTML views with PDFKit.
I did some "research":
http://railscasts.com/episodes/223-charts#comment_116765
Simply brilliant! Thanks for yet another very useful and enlightening Railscasts.
Thanks for this Ryan! Seeing it is so easy, maybe i am going to put this in some projects of mine.
I think railscasts.com is so usefull for this, showing the people all different kind of tactics and solutions to fix problems.
Thanks a lot!
another source to add to your list is DHX:
http://www.dhtmlx.com
welcom to buy
Nike fivefingers kso nike runing shoes
Free shipping, cheaper price ,discount
Nice screencast, it made me swap my charts in a current project from Seer to Highcharts.
Does anybody have an idea how to group the data by year|month|week instead of day?
I use XML I think there are not many rails chart available. Please tell me it handles javascript or not?
Regards,
Data Recovery
http://www.datadoctor.biz
use XML I think there are not many rails chart available. Please tell me it handles javascript or not?
e XML I think there are not many rails chart available. Please tell me it handles javascript or not?
Very good document you may have penned. I found the subject very interesting generating for only a gratifying go through.
Locations additional that we consider you'll find important also
<strong><a href="http://www.2hotnsexy.com/Detroit/Escort-Agencies/tag/detroit-college-escorts/29/">detroit college escorts</a></strong>
thank you ,i am a seo,this help me a lot!
hi,i am a fan of nintendo and wii,so i always find <a href="http://www.ndscardstore.com/">acekard 2i</a> and other nds card on website,so i have brought so many cards from so much site,between those sites,recently i found two site with free shipping,and the cards is latest, between price and service,i chice the one blew:http://www.ndscardstore.com!
Love the railscasts, watch them every week. I implemented highcharts over the past few days and wanted to let you (and anyone else interested) know of a snag that I hit with the "orders_chart_series" method. Where you group and select the orders table for the variable "orders_by_day", I had to change :group => "date(purchased_at)" to :group => "DATE(CONVERT_TZ(purchased_at, '+00:00', '#{Time.zone.formatted_offset}'))". Same thing with the :select value. Without this, the records were falling in all utc dates.
FYI, this was all on rails 2.3.8, so maybe rails three does this automatically before executing the mysql statement.
One last thing I wanted to tell you about the time zone issue I was having. This isn't a major issue, but if you want your highcharts' dates to line up properly, you should do this for the pointStart variable.
pointStart: <%= (3.weeks.ago.beginning_of_day + Time.zone.utc_offset).to_i * 1000 %>
Please let me know if these suggestions are incorrect. Thanks!
Hate to clog up your comments thread, but there is a small mistake in the code I just posted, the Time.zone methods need to include the .now so it accounts for daylight savings. So, in the previous two posts, always use:
Time.zone.now.formatted_offset & Time.zone.now.utc_offset
the article is amazing
the chat code is helpful for me
thanks for sharing
the number of libraries to help create graphs is very useful to me. Here I learned how to integrate Highcharts into a Rails app.
hey Ryan! - Great as always - THANK YOU!
Is there any way you are aware of to show multiple graphs in a view and be able to print to pdf?
Maybe it doesnt exist?!
Thanks again! ak.
Thanks for such a great post and the review, I am totally impressed! Keep stuff like this coming
I really liked your article and I shared with my friends in my facebook account ..
I gave my site a few examples below. If you appreciate my comments in you enter.
love converse all star,love yourself.High quality low price.It's fit for you.
I'm a bit stuck converting the AREL methods back to Rails 2.3.8. I get the named_scopes bit, but I'm struggling with the self.total_on(date) and orders_chart_series methods. Can someone help by showing how this example can be converted for use in a Rails 2.3.8 project?
The blog article very surprised to me! Your writing is good. In this I learned a lot! Thank you!
Some times, to a certain need, we have to convert PDF to image for enjoyment.
Thanks for sharing your article. I really enjoyed it. I put a link to my site to here so other people can read it. My readers have about the same interets
Is there any way you are aware of to show multiple graphs in a view and be able to print to pdf?
Maybe it doesnt exist?!
Thanks again! ak.
I gave my site a few examples below. If you appreciate my comments in you enter.
the respond_with(@product) shall produce an error I think (as the product has just been destroyed).
Thanks for sharing your article. I really enjoyed it. I put a link to my site to here so other people can read it.
Good article! Thank you so much for sharing this post.Your views truly open my mind.






