Sha256: e4d69c34c05459537a14b03cfdd8cb8f3585ed05248661f502c13fd65d48b109

Contents?: true

Size: 1.03 KB

Versions: 12

Compression:

Stored size: 1.03 KB

Contents

# -*- coding: utf-8 -*-
require 'helper'

class TestRegressionChartCombined10 < Minitest::Test
  def setup
    setup_dir_var
  end

  def teardown
    @tempfile.close(true)
  end

  def test_chart_combined10
    @xlsx = 'chart_combined10.xlsx'
    workbook  = WriteXLSX.new(@io)
    worksheet = workbook.add_worksheet
    chart_doughnut = workbook.add_chart(:type => 'doughnut', :embedded => 1)
    chart_pie      = workbook.add_chart(:type => 'pie',      :embedded => 1)

    worksheet.write_col('H2', ['Donut', 25, 50, 25, 100])
    worksheet.write_col('I2', ['Pie',   75,  1, 124])

    chart_doughnut.add_series(
      :name   => '=Sheet1!$H$2',
      :values => '=Sheet1!$H$3:$H$6'
    )
    chart_doughnut.show_blanks_as('gap')

    chart_pie.add_series(
      :name   => '=Sheet1!$I$2',
      :values => '=Sheet1!$I$3:$I$6'
    )
    chart_doughnut.combine(chart_pie)

    worksheet.insert_chart('E9', chart_doughnut)

    workbook.close
    compare_for_regression(
      [],
      { 'xl/charts/chart1.xml' => ['<c:dispBlanksAs'] }
    )
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
write_xlsx-1.09.4 test/regression/test_chart_combined10.rb
write_xlsx-1.09.3 test/regression/test_chart_combined10.rb
write_xlsx-1.09.2 test/regression/test_chart_combined10.rb
write_xlsx-1.09.1 test/regression/test_chart_combined10.rb
write_xlsx-1.09.0 test/regression/test_chart_combined10.rb
write_xlsx-1.08.2 test/regression/test_chart_combined10.rb
write_xlsx-1.08.1 test/regression/test_chart_combined10.rb
write_xlsx-1.08.0 test/regression/test_chart_combined10.rb
write_xlsx-1.07.0 test/regression/test_chart_combined10.rb
write_xlsx-1.04.0 test/regression/test_chart_combined10.rb
write_xlsx-1.02.0 test/regression/test_chart_combined10.rb
write_xlsx-1.01.0 test/regression/test_chart_combined10.rb