Class: Writexlsx::Chart::Area
- Inherits:
-
Writexlsx::Chart
- Object
- Writexlsx::Chart
- Writexlsx::Chart::Area
- Includes:
- Utility
- Defined in:
- lib/write_xlsx/chart/area.rb
Constant Summary
Constants included from Utility
Utility::COL_MAX, Utility::ROW_MAX, Utility::SHEETNAME_MAX, Utility::STR_MAX
Instance Attribute Summary
Attributes inherited from Writexlsx::Chart
#embedded, #formula_data, #formula_ids, #id, #index, #palette
Instance Method Summary collapse
-
#initialize ⇒ Area
constructor
A new instance of Area.
-
#write_area_chart ⇒ Object
Write the <c:areaChart> element.
-
#write_chart_type ⇒ Object
Override the virtual superclass method with a chart specific method.
Methods included from Utility
#absolute_char, delete_files, #put_deprecate_message, #substitute_cellref, #underline_attributes, #xl_cell_to_rowcol, #xl_col_to_name, #xl_range, #xl_range_formula, #xl_rowcol_to_cell, #xml_str
Methods inherited from Writexlsx::Chart
#add_series, #assemble_xml_file, factory, #set_chartarea, #set_embedded_config_data, #set_legend, #set_plotarea, #set_style, #set_title, #set_x_axis, #set_xml_writer, #set_y_axis, #write_bar_chart
Constructor Details
#initialize ⇒ Area
Returns a new instance of Area.
23 24 25 26 |
# File 'lib/write_xlsx/chart/area.rb', line 23 def initialize super(self.class) @cross_between = 'midCat' end |
Instance Method Details
#write_area_chart ⇒ Object
Write the <c:areaChart> element.
39 40 41 42 43 44 45 46 |
# File 'lib/write_xlsx/chart/area.rb', line 39 def write_area_chart @writer.tag_elements('c:areaChart') do # Write the c:grouping element. write_grouping('standard') # Write the series elements. write_series end end |
#write_chart_type ⇒ Object
Override the virtual superclass method with a chart specific method.
31 32 33 34 |
# File 'lib/write_xlsx/chart/area.rb', line 31 def write_chart_type # Write the c:areaChart element. write_area_chart end |