Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

A Ruby/Rails module allowing to generate Google Chart graphics

License

Notifications You must be signed in to change notification settings

Hermanverschooten/ruby_on_gchart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ruby_on_gchart

This gem allows you to generate Google Chart graphics within Ruby/Rails.

Installation

Add this line to your application's Gemfile:

gem 'ruby_on_gchart'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ruby_on_gchart

Usage

Example

GoogleChart::Chart.new({
    :type => :line,
    :height => 200,
    :width => 1000,
    :encoding => :simple,
    :datas => [25, 50],
    :labels => ['First Label', 'Second Label']
}).to_url

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

Copyright (c) 2009 Damien MATHIEU, (c) 2013 Herman verschooten, released under the MIT license

About

A Ruby/Rails module allowing to generate Google Chart graphics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages