lib/write_xlsx/chart.rb in write_xlsx-0.77.2 vs lib/write_xlsx/chart.rb in write_xlsx-0.78.0
- old
+ new
@@ -154,10 +154,13 @@
require 'write_xlsx/chart/bar'
Chart::Bar.new(subtype)
when 'Column'
require 'write_xlsx/chart/column'
Chart::Column.new(subtype)
+ when 'Doughnut'
+ require 'write_xlsx/chart/doughnut'
+ Chart::Doughnut.new(subtype)
when 'Line'
require 'write_xlsx/chart/line'
Chart::Line.new(subtype)
when 'Pie'
require 'write_xlsx/chart/pie'
@@ -1924,10 +1927,10 @@
return if (!line || !ptrue?(line[:_defined])) &&
(!fill || !ptrue?(fill[:_defined]))
@writer.tag_elements('c:spPr') do
- # Write the fill elements for solid charts such as pie and bar.
+ # Write the fill elements for solid charts such as pie/doughnut and bar.
if fill && fill[:_defined] != 0
if ptrue?(fill[:none])
# Write the a:noFill element.
write_a_no_fill
else