class Gruff::Histogram

Here’s how to set up a Gruff::Histogram.

g = Gruff::Histogram.new
g.title = 'Histogram Graph'
g.minimum_bin = 10
g.bin_width = 20
g.data :A, [10, 10, 20, 30, 40, 40, 40, 40, 40, 40, 50, 10, 10, 10]
g.data :B, [100, 100, 100, 100, 90, 90, 80, 30, 30, 30, 30, 30]
g.write('histogram.png')