Class: Axlsx::SerAxis
Overview
A SerAxis object defines a series axis
Instance Attribute Summary collapse
-
#tickLblSkip ⇒ Integer
The number of tick lables to skip between labels.
-
#tickMarkSkip ⇒ Boolean
The number of tickmarks to be skipped before the next one is rendered.
Attributes inherited from Axis
#ax_id, #ax_pos, #color, #cross_ax, #crosses, #delete, #format_code, #gridlines, #label_rotation, #scaling, #tick_lbl_pos, #title
Instance Method Summary collapse
-
#initialize(axId, crossAx, options = {}) ⇒ SerAxis
constructor
Creates a new SerAxis object.
-
#to_xml_string(str = '') ⇒ String
Serializes the object.
Constructor Details
#initialize(axId, crossAx, options = {}) ⇒ SerAxis
Creates a new SerAxis object
22 23 24 25 |
# File 'lib/axlsx/drawing/ser_axis.rb', line 22 def initialize(axId, crossAx, ={}) @tickLblSkip, @tickMarkSkip = 1, 1 super(axId, crossAx, ) end |
Instance Attribute Details
#tickLblSkip ⇒ Integer
The number of tick lables to skip between labels
8 9 10 |
# File 'lib/axlsx/drawing/ser_axis.rb', line 8 def tickLblSkip @tickLblSkip end |
#tickMarkSkip ⇒ Boolean
The number of tickmarks to be skipped before the next one is rendered.
12 13 14 |
# File 'lib/axlsx/drawing/ser_axis.rb', line 12 def tickMarkSkip @tickMarkSkip end |
Instance Method Details
#to_xml_string(str = '') ⇒ String
Serializes the object
36 37 38 39 40 41 42 |
# File 'lib/axlsx/drawing/ser_axis.rb', line 36 def to_xml_string(str = '') str << '<c:serAx>' super(str) str << '<c:tickLblSkip val="' << @tickLblSkip.to_s << '"/>' unless @tickLblSkip.nil? str << '<c:tickMarkSkip val="' << @tickMarkSkip.to_s << '"/>' unless @tickMarkSkip.nil? str << '</c:serAx>' end |