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

Version Path
axlsx-1.3.5 lib/axlsx/drawing/val_axis.rb
axlsx-1.3.4 lib/axlsx/drawing/val_axis.rb
axlsx-1.3.3 lib/axlsx/drawing/val_axis.rb
axlsx-1.3.2 lib/axlsx/drawing/val_axis.rb
axlsx-1.3.1 lib/axlsx/drawing/val_axis.rb
axlsx-1.2.3 lib/axlsx/drawing/val_axis.rb
axlsx-1.2.2 lib/axlsx/drawing/val_axis.rb
axlsx-1.2.1 lib/axlsx/drawing/val_axis.rb
axlsx-1.2.0 lib/axlsx/drawing/val_axis.rb
axlsx-1.1.8 lib/axlsx/drawing/val_axis.rb
axlsx-1.1.7 lib/axlsx/drawing/val_axis.rb
axlsx-1.1.6 lib/axlsx/drawing/val_axis.rb
axlsx-1.1.5 lib/axlsx/drawing/val_axis.rb
axlsx-1.1.4 lib/axlsx/drawing/val_axis.rb
axlsx-1.1.3 lib/axlsx/drawing/val_axis.rb
axlsx-1.1.2 lib/axlsx/drawing/val_axis.rb
axlsx-1.1.1 lib/axlsx/drawing/val_axis.rb
axlsx-1.1.0 lib/axlsx/drawing/val_axis.rb