github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jparker / ruby-googlechart

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 10
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (3)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • master ✓
    • mulligan
  • Tags (3)
    • 0.6.3
    • 0.6.2
    • 0.6.0
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A ruby interface to the Google Chart API — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Moving to gemcutter, using jeweler for management, bumping to version 
0.6.4. 
jparker (author)
Sun Nov 15 22:09:43 -0800 2009
commit  304d4965927a21331759cdee4b930f3429885d1b
tree    6e10b101190b925c3682de2576fa5e40ce1eac01
parent  381cdeb2c92fd5a5bdc2299965c5957075d95175
ruby-googlechart /
name age
history
message
file .gitignore Sun Nov 15 22:22:07 -0800 2009 Moving to gemcutter, using jeweler for manageme... [jparker]
file CHANGELOG Loading commit data...
file LICENSE
file README.rdoc Sun Nov 15 22:22:07 -0800 2009 Moving to gemcutter, using jeweler for manageme... [jparker]
file Rakefile Sun Nov 15 22:22:07 -0800 2009 Moving to gemcutter, using jeweler for manageme... [jparker]
file VERSION Sun Nov 15 22:22:07 -0800 2009 Moving to gemcutter, using jeweler for manageme... [jparker]
directory lib/ Sun Nov 23 02:22:37 -0800 2008 Redesigned handling of bar grouping. - Bar gro... [jparker]
file ruby-googlechart.gemspec Sun Nov 15 22:22:07 -0800 2009 Moving to gemcutter, using jeweler for manageme... [jparker]
directory test/ Sun Nov 15 22:22:07 -0800 2009 Moving to gemcutter, using jeweler for manageme... [jparker]
README.rdoc

ruby-googlechart

  • github.com/jparker/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:

  • googlecharts.rubyforge.org/
  • code.google.com/p/gchartrb/

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
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server