Created
January 14, 2009 02:45
-
-
Save fixlr/46750 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example of using Gchart (gchart.rubyforge.org) to graph | |
# some basic carpooling data (www.petrock.org/carpool) | |
Gchart.line(:size => "800x300", :title => "Carpool Data", | |
:legend => @participants.collect {|person| person.name}, | |
:line_colors => @participants.collect {|person| person.color}.join(','), | |
:format => 'image_tag', | |
:data => @participants.collect {|person| @history[person.name] }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment