News for hackers. Stuff that matters.
Re:Show HN: Create Javascript charts with one line of Ruby by tomblomfield on Monday May 13, 2013 @10:26AM (#5698816)
This looks nice, but most of the hard work is done elsewhere.

https://github.com/ankane/groupdate (by the same author) makes it simple to output the right JSON grouped by date (awesome!)

Highcharts/Google charts make it simple to turn json into JS graphs.

This library provides glue so you don't have to read the highchart docs. Might save some people some time, I guess...

Re:Show HN: Create Javascript charts with one line of Ruby by akane on Monday May 13, 2013 @10:42AM (#5698902)
Highcharts, Google Chart, groupdate, jQuery (for AJAX), and iso8601.js (date parsing) definitely do the heavy lifting.

My favorite part about the library is you don't need to worry about getting the data in correct format. It just works with existing Rails methods, like ActiveRecord's count.

Also, Google Charts look a lot better with a little bit of custom styling.

Re:Show HN: Create Javascript charts with one line of Ruby by logicallee on Monday May 13, 2013 @11:02AM (#5699027)
"Beautiful charts with 1 line of ruby"

"This looks nice, but most of the hard work is done elsewhere."

What were you expecting?

Re:Show HN: Create Javascript charts with one line of Ruby by mitchh on Monday May 13, 2013 @11:16AM (#5699112)
The title seems to lead on that it's possible to create beautiful charts with just one line of Ruby, when really it's 'Create beautiful charts with just one line of Ruby (if you use these libraries).'

The original title is 'Create beautiful Javascript charts with one line of Ruby', which is more accurate.

Re:Show HN: Create Javascript charts with one line of Ruby by lobster_johnson on Monday May 13, 2013 @01:17PM (#5699947)
Well, it's true: You can create charts with just one line of Ruby. The fact that it uses libraries to provide such a service is irrelevant to the assertion.
Re:Show HN: Create Javascript charts with one line of Ruby by CatMtKing on Monday May 13, 2013 @01:38PM (#5700081)
Agh, pedantic semantics!