class Axlsx::ValAxis

the ValAxis class defines a chart value axis.

Attributes

crossBetween[R]

This element specifies how the value axis crosses the category axis. must be one of [:between, :midCat] @return [Symbol]

cross_between[R]

This element specifies how the value axis crosses the category axis. must be one of [:between, :midCat] @return [Symbol]

Public Class Methods

new(options={}) click to toggle source

Creates a new ValAxis object @option options [Symbol] crosses_between

Calls superclass method Axlsx::Axis::new
# File lib/axlsx/drawing/val_axis.rb, line 14
def initialize(options={})
  self.cross_between = :between
  super(options)
end

Public Instance Methods

crossBetween=(v)
Alias for: cross_between=
cross_between=(v) click to toggle source

@see cross_between

# File lib/axlsx/drawing/val_axis.rb, line 20
def cross_between=(v)
  RestrictionValidator.validate "ValAxis.cross_between", [:between, :midCat], v
  @cross_between = v
end
Also aliased as: crossBetween=
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/val_axis.rb, line 29
def to_xml_string(str = '')
  str << '<c:valAx>'
  super(str)
  str << '<c:crossBetween val="' << @cross_between.to_s << '"/>'
  str << '</c:valAx>'
end