d3-rails provides D3 for Rails 3.1 and higher.
d3-rails comes with version 4.3.0 of D3.js. The d3-rails version will always mirror the version of D3. If you need a newer version of d3-rails, see section Development (below).
Add this line to your
Please note that D3 is provided via the asset pipeline and you do not need to copy their files into your application. Rails will get them from d3-rails automatically.
Then add it to your manifest file, most probably at
//= require d3
If you need a newer version of d3, please do the following:
- Fork this repository
- Clone your repository to a local directory
- Create a branch called update-version in your repository
bundle exec rake d3:update_version
- Create a commit stating the version you updated to
- Push to your repository
- Create a pull request
I will then merge and release a new version of the gem.