https://github.com/johnantoni/graphael-on-rails
g.Raphael charting gem built for the Rails asset pipeline (includes raphael.js)
https://github.com/johnantoni/graphael-on-rails
Last synced: over 1 year ago
JSON representation
g.Raphael charting gem built for the Rails asset pipeline (includes raphael.js)
- Host: GitHub
- URL: https://github.com/johnantoni/graphael-on-rails
- Owner: johnantoni
- License: mit
- Created: 2013-02-08T18:55:04.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2014-04-11T21:32:52.000Z (over 12 years ago)
- Last Synced: 2024-04-16T07:36:39.174Z (over 2 years ago)
- Language: Ruby
- Size: 176 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# graphael-on-rails
Rails gem based on the gRaphael graphing library
http://g.raphaeljs.com/
## 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
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
## Many Thanks
Special thanks goes to all the team who created the wonderful RaphaelJS & gRaphael libraries
* http://g.raphaeljs.com/
* http://raphaeljs.com/