Class: Writexlsx::Chart::Line
- Inherits:
-
Writexlsx::Chart
- Object
- Writexlsx::Chart
- Writexlsx::Chart::Line
- Includes:
- Utility
- Defined in:
- lib/write_xlsx/chart/line.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 ⇒ Line
constructor
A new instance of Line.
-
#write_chart_type ⇒ Object
Override the virtual superclass method with a chart specific method.
-
#write_line_chart ⇒ Object
Write the <c:lineChart> element.
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 ⇒ Line
Returns a new instance of Line.
22 23 24 25 |
# File 'lib/write_xlsx/chart/line.rb', line 22 def initialize super(self.class) @default_marker = {:type => 'none'} end |
Instance Method Details
#write_chart_type ⇒ Object
Override the virtual superclass method with a chart specific method.
30 31 32 33 |
# File 'lib/write_xlsx/chart/line.rb', line 30 def write_chart_type # Write the c:barChart element. write_line_chart end |
#write_line_chart ⇒ Object
Write the <c:lineChart> element.
38 39 40 41 42 43 44 45 |
# File 'lib/write_xlsx/chart/line.rb', line 38 def write_line_chart @writer.tag_elements('c:lineChart') do # Write the c:grouping element. write_grouping('standard') # Write the series elements. write_series end end |