xcharts-rails gem
A gem to add xCharts into your Rails application Assets Pipeline.
This repository is a fork of orlando/xcharts_rails.
Installation
Add this line to your application's Gemfile:
gem 'xcharts-rails'
And then execute:
$ bundle install
Now add xcharts
to application.js
and application.css
:
Open application.js
and add the following lines:
//= require d3.v3
//= require xcharts
Then open application.css
and add the following line:
*= require xcharts
Now you are ready to follow the xCharts documentation.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Copyright
Copyright (c) 2014 Guillaume Hain. See LICENSE.txt for further details.