Live data from Hacker News

Show HN: Create Javascript charts with one line of Ruby

ankane.github.io

11–20 of 64 posts

Re: Show HN: Create Javascript charts with one line of Ruby

#17
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

#18
post #10
post #6

The ruby wrapper lib around the JS is dead simple. Could be ported to any language with ease. Very nice work! https://github.com/ankane/chartkick/blob/master/lib/chartkic...

Thanks! I started out heavy on the Ruby side but moved most logic to the JS to make AJAX charts dead simple to implement. (render :json => chart_data)

The ruby wrapping lib supports AJAX out of the box by passing a URL or route path to the helper and returning JSON from that endpoint.
Post reply on HN