No commit activity in last 3 years
No release in over 3 years
gRaphael library for rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0

Runtime

~> 3.1
 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