require 'rubygems'
require 'scruffy'

graph = Scruffy::Graph.new
graph.title = "Comparative Agent Performance"
graph.value_formatter = Scruffy::Formatters::Number.new
graph.add :stacked do |stacked|
  # Try to replace the 1s with 0s. Looks weird too.
  stacked.add :bar, 'Foo', [1, 10, 10]
  stacked.add :bar, 'Bar', [10, 1, 10]
  stacked.add :bar, 'Zap', [10, 10, 1]
end
graph.point_markers = ['Jan', 'Feb', 'Mar']
graph.render :as => 'PNG', :to => 'scruffy.png'