lib/axlsx/drawing/pie_3D_chart.rb in axlsx-1.3.4 vs lib/axlsx/drawing/pie_3D_chart.rb in axlsx-1.3.5

- old
+ new

@@ -21,10 +21,11 @@ # @option options [Boolean] r_ang_ax # @option options [Integer] perspective # @see Chart # @see View3D def initialize(frame, options={}) + @vary_colors = true super(frame, options) @series_type = PieSeries @view_3D = View3D.new({:rot_x =>30, :perspective=>30}.merge(options)) @d_lbls = nil end @@ -34,10 +35,10 @@ # @return [String] def to_xml_string(str = '') super(str) do |str_inner| str_inner << '<c:pie3DChart>' - str_inner << '<c:varyColors val="1"/>' + str_inner << '<c:varyColors val="' << vary_colors.to_s << '"/>' @series.each { |ser| ser.to_xml_string(str_inner) } d_lbls.to_xml_string(str) if @d_lbls str_inner << '</c:pie3DChart>' end end