graphael-on-rails
Rails gem based on the gRaphael graphing library
Installation
Add this line to your application's Gemfile:
gem 'graphael-on-rails'
And then execute:
$ bundle
Include assets:
// In application.js
//= require graphael-on-rails
Usage
// Creates canvas 640 × 480 at 10, 50
var r = Raphael(10, 50, 640, 480);
// Creates pie chart at with center at 320, 200,
// radius 100 and data: [55, 20, 13, 32, 5, 1, 2]
r.piechart(320, 240, 100, [55, 20, 13, 32, 5, 1, 2]);
Read the documentation here http://g.raphaeljs.com/reference.html
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
Many Thanks
Special thanks goes to all the team who created the wonderful RaphaelJS & gRaphael libraries