Sha256: 9939a1bdae633e25a2cba4861056de0635ebb3c9ca7b8cc8b95d55b4fb3979d2

Contents?: true

Size: 342 Bytes

Versions: 2

Compression:

Stored size: 342 Bytes

Contents

# frozen_string_literal: true

module ChartTest
  def chart_test(fname, type, data = self::DATA, &block)
    test fname do |wb|
      wb.add_worksheet do |ws|
        data.each { |row| ws.add_row row }

        wb.add_chart(type) do |chart|
          yield chart

          ws.insert_chart 'E9', chart
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xlsxwriter-0.2.1.pre.2 test/support/chart_test.rb
xlsxwriter-0.2.1.pre test/support/chart_test.rb