Sha256: 8c4b89a9dd49ccec1c8218c5bd1299e28930fff8f68df2687ed67c4bde0dd94e
Contents?: true
Size: 1.1 KB
Versions: 18
Compression:
Stored size: 1.1 KB
Contents
# 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 << '<c:valAx>' super(str) str << '<c:crossBetween val="' << @crossBetween.to_s << '"/>' str << '</c:valAx>' end end end
Version data entries
18 entries across 18 versions & 1 rubygems