Method: Axlsx::BarSeries#to_xml

Defined in:
lib/axlsx/drawing/bar_series.rb

#to_xml(xml) ⇒ String

Serializes the series

Parameters:

  • xml (Nokogiri::XML::Builder)

    The document builder instance this objects xml will be added to.

Returns:

  • (String)


45
46
47
48
49
50
51
# File 'lib/axlsx/drawing/bar_series.rb', line 45

def to_xml(xml)
  super(xml) do |xml_inner|
    @labels.to_xml(xml_inner) unless @labels.nil?
    @data.to_xml(xml_inner) unless @data.nil?
    xml_inner.shape :val=>@shape
  end      
end