class Axlsx::SerAxis
A SerAxis
object defines a series axis
Attributes
tickLblSkip[R]
The number of tick lables to skip between labels @return [Integer]
tickMarkSkip[R]
The number of tickmarks to be skipped before the next one is rendered. @return [Boolean]
tick_lbl_skip[R]
The number of tick lables to skip between labels @return [Integer]
tick_mark_skip[R]
The number of tickmarks to be skipped before the next one is rendered. @return [Boolean]
Public Class Methods
new(options={})
click to toggle source
Creates a new SerAxis
object @option options [Integer] tick_lbl_skip
@option options [Integer] tick_mark_skip
Calls superclass method
Axlsx::Axis::new
# File lib/axlsx/drawing/ser_axis.rb, line 19 def initialize(options={}) @tick_lbl_skip, @tick_mark_skip = 1, 1 super(options) end
Public Instance Methods
tick_lbl_skip=(v)
click to toggle source
@see tickLblSkip
# File lib/axlsx/drawing/ser_axis.rb, line 25 def tick_lbl_skip=(v) Axlsx::validate_unsigned_int(v); @tick_lbl_skip = v; end
Also aliased as: tickLblSkip=
tick_mark_skip=(v)
click to toggle source
@see tickMarkSkip
# File lib/axlsx/drawing/ser_axis.rb, line 29 def tick_mark_skip=(v) Axlsx::validate_unsigned_int(v); @tick_mark_skip = v; end
Also aliased as: tickMarkSkip=
to_xml_string(str = '')
click to toggle source
Serializes the object @param [String] str @return [String]
Calls superclass method
Axlsx::Axis#to_xml_string
# File lib/axlsx/drawing/ser_axis.rb, line 35 def to_xml_string(str = '') str << '<c:serAx>' super(str) str << '<c:tickLblSkip val="' << @tick_lbl_skip.to_s << '"/>' unless @tick_lbl_skip.nil? str << '<c:tickMarkSkip val="' << @tick_mark_skip.to_s << '"/>' unless @tick_mark_skip.nil? str << '</c:serAx>' end