This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sun Nov 15 22:22:07 -0800 2009 | |
| |
CHANGELOG | Sun Nov 23 02:27:07 -0800 2008 | |
| |
LICENSE | Sun Nov 15 22:22:07 -0800 2009 | |
| |
README.rdoc | Sun Nov 15 22:22:07 -0800 2009 | |
| |
Rakefile | Sun Nov 15 22:22:07 -0800 2009 | |
| |
VERSION | Sun Nov 15 22:22:07 -0800 2009 | |
| |
lib/ | Sun Nov 23 02:22:37 -0800 2008 | |
| |
ruby-googlechart.gemspec | Sun Nov 15 22:22:07 -0800 2009 | |
| |
test/ | Sun Nov 15 22:22:07 -0800 2009 |
README.rdoc
ruby-googlechart
DESCRIPTION
ruby-googlechart is a ruby library which provides object-oriented access to the Google Charts API.
This library has largely been done as an exercise. These other ruby libraries are more mature and may be better suited to your needs:
FEATURES
- Line charts (line, XY, sparkline)
- Bar charts (horizontal, vertical, grouped, stacked)
SYNOPSIS
require 'google_chart'
url = GoogleChart.Line(:data => [1, nil, 2, 8, 1])
url = GoogleChart.Bar(:data => [5, 23, 6, 14])
url = GoogleChart.Bar do |c|
c.axes = {:x => %w[Q1 Q2 Q3 Q4], :y => 0..400}
c.data = [335, 285, 240, 220, 160, 175, 200, 205]
c.encoding = :extended
c.scale = 0..400
c.size = '800x375'
c.style = :dash
c.title = "Are You Pondering What I'm Pondering?"
c.type = :line
end
url = GoogleChart.Bar do |c|
c.horizontal = true
c.grouped = true
c.data = [[5, 6, 7, 8], [23, 14, 17, 16]]
c.encoding = :text
c.title = 'Lorem Ipsum Dolor'
end
chart = GoogleChart::LineChart.new
chart.type = :sparkline
chart.size = '75x25'
chart.data = [1, 1, 2, 3, 5, 8, 13]
chart.color = 'ff0000'
url = chart.to_url
REQUIREMENTS
- Low standards
INSTALL
- sudo gem install ruby-googlechart







