Sha256: 36a2a48acf89d53868b5ea47c6efb4f18a69a7388ae6fffd8e5ef6e0c1445ec1
Contents?: true
Size: 1.08 KB
Versions: 6
Compression:
Stored size: 1.08 KB
Contents
module Axlsx # the ValAxis class defines a chart value axis. class ValAxis < Axis # This element specifies whether the value axis crosses the category axis between categories. # must be one of [:between, :midCat] # @return [Symbol] attr_accessor :crossesBetween # 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] crosses # @option options [Symbol] tickLblPos # @option options [Symbol] crossesBetween def initialize(axId, crossAx, options={}) super(axId, crossAx, options) @crossesBetween = :between end # Serializes the value axis # @param [Nokogiri::XML::Builder] xml The document builder instance this objects xml will be added to. # @return [String] def to_xml(xml) xml.send('c:valAx') { super(xml) xml.send('c:axId', :val=>@axId) @scaling.to_xml(xml) xml.send('c:crossesBetween', :val=>@crossesBetween) } end end end
Version data entries
6 entries across 6 versions & 1 rubygems