Sha256: 6ac610241408c27e2bba6ca0a90c74092895491f902ff70f8c8445d03cac9f3f
Contents?: true
Size: 792 Bytes
Versions: 5
Compression:
Stored size: 792 Bytes
Contents
require_relative './xlsx-func-testcase' class TestChartDoughnut < XlsxWriterTestCase DATA = [ [2, 60], [4, 30], [6, 10] ] test 'chart_doughnut02' do |wb| wb.add_worksheet do |ws| DATA.each { |row| ws.add_row row } wb.add_chart(XlsxWriter::Workbook::Chart::DOUGHNUT) do |chart| chart.add_series '=Sheet1!$A$1:$A$3', '=Sheet1!$B$1:$B$3' chart.hole_size = 10 ws.insert_chart('E9', chart) end end end test 'chart_doughnut04' do |wb| wb.add_worksheet do |ws| DATA.each { |row| ws.add_row row } wb.add_chart(XlsxWriter::Workbook::Chart::DOUGHNUT) do |chart| chart.add_series '=Sheet1!$A$1:$A$3', '=Sheet1!$B$1:$B$3' chart.rotation = 30 ws.insert_chart('E9', chart) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems