Sha256: 11c1e086893bff8084ceba0ad1e8ded7a8778065ed88992df83900fb4c5d1fd3
Contents?: true
Size: 645 Bytes
Versions: 6
Compression:
Stored size: 645 Bytes
Contents
require_relative './xlsx-func-testcase' class TestChartArea < XlsxWriterTestCase test 'chart_area03' do |wb| wb.add_worksheet do |ws| [ [1, 8, 3], [2, 7, 6], [3, 6, 9], [4, 8, 12], [5, 10, 15] ].each { |row| ws.add_row row } wb.add_chart(XlsxWriter::Workbook::Chart::AREA_STACKED_PERCENT) do |chart| chart.axis_id_1 = 62_813_312 chart.axis_id_2 = 62_814_848 chart.add_series '=Sheet1!$A$1:$A$5', '=Sheet1!$B$1:$B$5' chart.add_series '=Sheet1!$A$1:$A$5', '=Sheet1!$C$1:$C$5' ws.insert_chart 'E9', chart end end end end
Version data entries
6 entries across 6 versions & 1 rubygems