Skip to content

Instantly share code, notes, and snippets.

@nikosd
Created October 10, 2008 14:36
Show Gist options
  • Save nikosd/16059 to your computer and use it in GitHub Desktop.
Save nikosd/16059 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
require 'rubygems'
require 'gruff'
# Simplest graph
g = Gruff::Bar.new
g.title = 'A simple bar chart'
g.data('Foo', 5)
g.data('Bar', 3)
g.data('Else', 15)
g.write
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment