Class: Axlsx::SerAxis
Overview
A SerAxis object defines a series axis
Instance Attribute Summary (collapse)
-
- (Integer) tickLblSkip
The number of tick lables to skip between labels.
-
- (Boolean) tickMarkSkip
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)
-
- (SerAxis) initialize(axId, crossAx, options = {})
constructor
Creates a new SerAxis object.
-
- (String) to_xml(xml)
Serializes the series axis.
Constructor Details
- (SerAxis) initialize(axId, crossAx, options = {})
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
- (Integer) tickLblSkip
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 |
- (Boolean) tickMarkSkip
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
- (String) to_xml(xml)
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.send('c:serAx') { super(xml) xml.send('c:tickLblSkip', :val=>@tickLblSkip) unless @tickLblSkip.nil? xml.send('c:tickMarkSkip', :val=>@tickMarkSkip) unless @tickMarkSkip.nil? } end |