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
#axId, #axPos, #crossAx, #crosses, #format_code, #scaling, #tickLblPos
Instance Method Summary collapse
-
#initialize(axId, crossAx, options = {}) ⇒ SerAxis
constructor
Creates a new SerAxis object.
-
#to_xml(xml) ⇒ String
Serializes the series axis.
Constructor Details
#initialize(axId, crossAx, options = {}) ⇒ SerAxis
Creates a new SerAxis object
21 22 23 24 |
# File 'lib/axlsx/drawing/ser_axis.rb', line 21 def initialize(axId, crossAx, ={}) @tickLblSkip, @tickMarkSkip = nil, nil super(axId, crossAx, ) end |
Instance Attribute Details
#tickLblSkip ⇒ Integer
The number of tick lables to skip between labels
7 8 9 |
# File 'lib/axlsx/drawing/ser_axis.rb', line 7 def tickLblSkip @tickLblSkip end |
#tickMarkSkip ⇒ Boolean
The number of tickmarks to be skipped before the next one is rendered.
11 12 13 |
# File 'lib/axlsx/drawing/ser_axis.rb', line 11 def tickMarkSkip @tickMarkSkip end |
Instance Method Details
#to_xml(xml) ⇒ String
Serializes the series axis
35 36 37 38 39 40 41 |
# File 'lib/axlsx/drawing/ser_axis.rb', line 35 def to_xml(xml) xml[:c].serAx { super(xml) xml[:c].tickLblSkip :val=>@tickLblSkip unless @tickLblSkip.nil? xml[:c].tickMarkSkip :val=>@tickMarkSkip unless @tickMarkSkip.nil? } end |