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
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'gruff' | |
# Let's hack almost everything | |
g = Gruff::Bar.new('800x700') # Define a custom size | |
g.sort = false # Do NOT sort data based on values | |
g.maximum_value = 40 # Declare a max value for the Y axis |