# encoding: UTF-8 module Axlsx # the ValAxis class defines a chart value axis. class ValAxis < Axis # This element specifies how the value axis crosses the category axis. # must be one of [:between, :midCat] # @return [Symbol] attr_reader :crossBetween # Creates a new ValAxis object # @param [Integer] axId the id of this axis # @param [Integer] crossAx the id of the perpendicular axis # @option options [Symbol] axPos # @option options [Symbol] tickLblPos # @option options [Symbol] crosses # @option options [Symbol] crossesBetween def initialize(axId, crossAx, options={}) self.crossBetween = :between super(axId, crossAx, options) end # @see crossBetween def crossBetween=(v) RestrictionValidator.validate "ValAxis.crossBetween", [:between, :midCat], v; @crossBetween = v; end # Serializes the object # @param [String] str # @return [String] def to_xml_string(str = '') str << '' super(str) str << '' str << '' end end end