Class: Axlsx::SerAxis
Overview
A SarAxis object defines a series axis
Instance Attribute Summary collapse
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
19 20 21 22 23 24 |
# File 'lib/axlsx/drawing/ser_axis.rb', line 19 def initialize(axId, crossAx, ={}) super(axId, crossAx, ) .each do |o| self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" end end |
Instance Attribute Details
#tickLblSkip ⇒ Boolean
6 7 8 |
# File 'lib/axlsx/drawing/ser_axis.rb', line 6 def tickLblSkip @tickLblSkip end |
#tickMarkSkip ⇒ Boolean
9 10 11 |
# File 'lib/axlsx/drawing/ser_axis.rb', line 9 def tickMarkSkip @tickMarkSkip end |
Instance Method Details
#to_xml(xml) ⇒ String
Serializes the series axis
32 33 34 35 36 37 38 |
# File 'lib/axlsx/drawing/ser_axis.rb', line 32 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 |