Module: Writexlsx::Chart::XmlWriter

Included in:
Writexlsx::Chart
Defined in:
lib/write_xlsx/chart/xml_writer.rb

Instance Method Summary collapse

Instance Method Details

#assemble_xml_fileObject

Assemble and write the XML file.



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/write_xlsx/chart/xml_writer.rb', line 16

def assemble_xml_file   # :nodoc:
  write_xml_declaration do
    # Write the c:chartSpace element.
    write_chart_space do
      # Write the c:lang element.
      write_lang
      # Write the c:style element.
      write_style
      # Write the c:protection element.
      write_protection
      # Write the c:chart element.
      write_chart
      # Write the c:spPr element for the chartarea formatting.
      write_sp_pr(@chartarea)
      # Write the c:printSettings element.
      write_print_settings if @embedded
    end
  end
end