class Gruff::AccumulatorBar

Gruff::AccumulatorBar is a special bar graph that shows a single dataset as a set of stacked bars. The bottom bar shows the running total and the top bar shows the new value being added to the array.

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

g = Gruff::AccumulatorBar.new
g.title = 'Your Savings'
g.data 'First', [1, 1, 1]
g.write('accumulator_bar.png')