diff options
| author | Randy Morgan <[email protected]> | 2011-11-23 12:28:10 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2011-11-23 12:28:10 +0900 |
| commit | 6739c249e7bf3cf7d2132b2aa49b6faf6bebec29 (patch) | |
| tree | c68e1527212c3665464debeebd2d97c127b0887e /lib/axlsx/drawing/val_axis.rb | |
| parent | 099a1d5a7824b7a6392bfe2f124ebeaf9d8122db (diff) | |
| download | caxlsx-6739c249e7bf3cf7d2132b2aa49b6faf6bebec29.tar.gz caxlsx-6739c249e7bf3cf7d2132b2aa49b6faf6bebec29.zip | |
-refactoring chart position and axis data/category for chart.
-additional specs and documentation improvements.
Diffstat (limited to 'lib/axlsx/drawing/val_axis.rb')
| -rw-r--r-- | lib/axlsx/drawing/val_axis.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/axlsx/drawing/val_axis.rb b/lib/axlsx/drawing/val_axis.rb index fae6adec..10a070f6 100644 --- a/lib/axlsx/drawing/val_axis.rb +++ b/lib/axlsx/drawing/val_axis.rb @@ -2,7 +2,7 @@ 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. + # This element specifies how the value axis crosses the category axis. # must be one of [:between, :midCat] # @return [Symbol] attr_accessor :crossBetween @@ -11,17 +11,17 @@ module Axlsx # @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] crosses # @option options [Symbol] crossesBetween def initialize(axId, crossAx, options={}) - @crossBetween = :between + self.crossBetween = :between super(axId, crossAx, options) end def crossBetween=(v) RestrictionValidator.validate "ValAxis.crossBetween", [:between, :midCat], v; @crossBetween = v; end - # Serializes the value axis + # 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) |
