Sha256: 55ddc4c0ef521f87bec2ce33dc5ea6007d2e96414e68485275cd8d5408639b54
Contents?: true
Size: 655 Bytes
Versions: 5
Compression:
Stored size: 655 Bytes
Contents
require_relative './xlsx-func-testcase' class TestChartColumn < XlsxWriterTestCase DATA = [ [1, 2, 3], [2, 4, 6], [3, 6, 9], [4, 8, 12], [5, 10, 15] ] test 'chart_column11' do |wb| wb.add_worksheet do |ws| DATA.each { |row| ws.add_row row } wb.add_chart(XlsxWriter::Workbook::Chart::COLUMN) do |chart| chart.axis_id_1 = 46_847_488 chart.axis_id_2 = 46_849_408 chart.add_series '=Sheet1!$A$1:$A$5' chart.add_series '=Sheet1!$B$1:$B$5' chart.add_series '=Sheet1!$C$1:$C$5' chart.style = 1 ws.insert_chart('E9', chart) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems