lib/axlsx/drawing/pie_3D_chart.rb in axlsx-1.1.8 vs lib/axlsx/drawing/pie_3D_chart.rb in axlsx-1.2.0
- old
+ new
@@ -24,19 +24,22 @@
# @see View3D
def initialize(frame, options={})
super(frame, options)
@series_type = PieSeries
@view_3D = View3D.new({:rot_x =>30, :perspective=>30}.merge(options))
+ @d_lbls = nil
end
# Serializes the object
# @param [String] str
# @return [String]
def to_xml_string(str = '')
super(str) do |str_inner|
+
str_inner << '<c:pie3DChart>'
str_inner << '<c:varyColors val="1"/>'
@series.each { |ser| ser.to_xml_string(str_inner) }
+ d_lbls.to_xml_string(str) if @d_lbls
str_inner << '</c:pie3DChart>'
end
end
end