5 ms·
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/l
by jqueryin 13y ago
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/chartkick/helper.rb https://github.com/ankane/chartkick/blob/master/lib/chartkic...
- akane 13y agoThanks! 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)
- mccolin 13y agoThe 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.
- proletarian 13y agoWell, well, mccolin replying to akane, long live Context Optional. And nice work akane.
- mccolin 13y agoLong live Context Optional, indeed!
- antileet 13y agoIf anyone's looking for similar functionality for PHP (Database-level time-grouping, time-ranged drilldowns, charts), you can check out http://razorflow.com http://razorflow.com (Disclosure: I am the developer of RazorFlow, and am only posting here because I feel it's relevant to this particular story)
- shabda 13y agoWe are building something similar for Django/Python: https://github.com/agiliq/django-graphos https://github.com/agiliq/django-graphos I am going to pick up some ideas from your code.
- satjot 13y agoshabda - this is great. i'm going to try this out and contribute some more graph types over the next few weeks.