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
22 23 24 25 |
# File 'lib/axlsx/drawing/ser_axis.rb', line 22 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
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(xml) ⇒ String
Serializes the series axis
36 37 38 39 40 41 42 |
# File 'lib/axlsx/drawing/ser_axis.rb', line 36 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 |