This gem packages the Rickshaw Javascript graphing library for easy use with the Rails 3.1+ asset pipleine.
Add this line to your application's Gemfile:
gem 'rickshaw_rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rickshaw_rails
Add this line to your application.css:
*= require rickshaw
Add this line to your application.js (This includes both rickshaw and d3.js):
//= require rickshaw_with_d3
You can also require d3 and rickshaw seperately if you want:
//= require d3.v2
//= require rickshaw
You can now use rickshaw in your app.
As of February 27th 2013, the version of this gem has been changed to reflect the rickshaw version numbers.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request