Name: d3-rails
Owner: Department of Veterans Affairs
Description: d3-rails provides D3 for Rails.
Created: 2016-08-25 14:17:28.0
Updated: 2016-08-25 14:17:29.0
Pushed: 2016-08-25 14:23:38.0
Size: 2738
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
D3.js is a JavaScript library for manipulating documents based on data. D3 helps you bring data to life using HTML, SVG and CSS.
d3-rails provides D3 for Rails 3.1 and higher.
d3-rails comes with version 4.2.2 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 Gemfile
:
gem "d3-rails"
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
app/assets/javascripts/application.js
:
//= require d3
If you need a newer version of d3, please do the following:
bundle exec rake d3:update_version
I will then merge and release a new version of the gem.