Class: Axlsx::Line3DChart
- Defined in:
- lib/axlsx/drawing/line_3D_chart.rb
Overview
The Line3DChart is a three dimentional line chart (who would have guessed?) that you can add to your worksheet.
Constant Summary collapse
- GAP_AMOUNT_PERCENT =
validation regex for gap amount percent
/0*(([0-9])|([1-9][0-9])|([1-4][0-9][0-9])|500)%/
Instance Attribute Summary collapse
-
#gap_depth ⇒ String
(also: #gapDepth)
space between bar or column clusters, as a percentage of the bar or column width.
Attributes inherited from LineChart
Attributes inherited from Chart
#bg_color, #display_blanks_as, #graphic_frame, #legend_position, #series, #series_type, #show_legend, #style, #title, #vary_colors, #view_3D
Instance Method Summary collapse
-
#initialize(frame, options = {}) ⇒ Line3DChart
constructor
Creates a new line chart object.
-
#ser_axis ⇒ Axis
(also: #serAxis)
the category axis.
-
#to_xml_string(str = '') ⇒ String
Serializes the object.
Methods inherited from LineChart
#axes, #cat_axis, #node_name, #val_axis
Methods inherited from Chart
#add_series, #d_lbls, #end_at, #from, #index, #pn, #relationship, #start_at, #to
Methods included from OptionsParser
Constructor Details
#initialize(frame, options = {}) ⇒ Line3DChart
Creates a new line chart object
44 45 46 47 48 49 |
# File 'lib/axlsx/drawing/line_3D_chart.rb', line 44 def initialize(frame, ={}) @gap_depth = nil @view_3D = View3D.new({:r_ang_ax=>1}.merge()) super(frame, ) axes.add_axis :ser_axis, SerAxis end |
Instance Attribute Details
#gap_depth ⇒ String Also known as: gapDepth
space between bar or column clusters, as a percentage of the bar or column width.
26 27 28 |
# File 'lib/axlsx/drawing/line_3D_chart.rb', line 26 def gap_depth @gap_depth end |
Instance Method Details
#ser_axis ⇒ Axis Also known as: serAxis
the category axis
34 35 36 |
# File 'lib/axlsx/drawing/line_3D_chart.rb', line 34 def ser_axis axes[:ser_axis] end |
#to_xml_string(str = '') ⇒ String
Serializes the object
62 63 64 65 66 |
# File 'lib/axlsx/drawing/line_3D_chart.rb', line 62 def to_xml_string(str = '') super(str) do str << ('<c:gapDepth val="' << @gap_depth.to_s << '"/>') unless @gap_depth.nil? end end |