draw (Gruff::AccumulatorBar)

    # File lib/gruff/accumulator_bar.rb, line 10
      def draw
        raise(Gruff::IncorrectNumberOfDatasetsException) unless @data.length == 1

        accumulator_array = []
        index = 0

        increment_array = @data.first[DATA_VALUES_INDEX].inject([]) {|memo, value|
            memo << ((index > 0) ? (value + memo.max) : value)
            accumulator_array << memo[index] - value
            index += 1
            memo
          }
        data "Accumulator", accumulator_array

        super
      end