From 6739c249e7bf3cf7d2132b2aa49b6faf6bebec29 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Wed, 23 Nov 2011 12:28:10 +0900 Subject: -refactoring chart position and axis data/category for chart. -additional specs and documentation improvements. --- doc/Axlsx/Axis.html | 64 +++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 45 insertions(+), 19 deletions(-) (limited to 'doc/Axlsx/Axis.html') diff --git a/doc/Axlsx/Axis.html b/doc/Axlsx/Axis.html index 7f4d1e0b..4ae315c3 100644 --- a/doc/Axlsx/Axis.html +++ b/doc/Axlsx/Axis.html @@ -95,7 +95,7 @@

Overview

-the access class defines common properties and values for chart axis +the access class defines common properties and values for a chart axis.

@@ -242,7 +242,7 @@ specifies how the perpendicular axis is crossed must be one of [:autoZero,

-The number format format code for this axis. +The number format format code for this axis default :General.

@@ -487,6 +487,25 @@ a customizable set of options +

Raises:

+
    + +
  • + + + (ArgumentError) + + + + — +

    +If axId or crossAx are not unsigned integers +

    +
    + +
  • + +
@@ -494,7 +513,6 @@ a customizable set of options
 
 
-44
 45
 46
 47
@@ -507,20 +525,21 @@ a customizable set of options
 54
 55
 56
-57
+57 +58
-
# File 'lib/axlsx/drawing/axis.rb', line 44
+      
# File 'lib/axlsx/drawing/axis.rb', line 45
 
 def initialize(axId, crossAx, options={})
   Axlsx::validate_unsigned_int(axId)
   Axlsx::validate_unsigned_int(crossAx)
   @axId = axId
   @crossAx = crossAx
+  @scaling = Scaling.new(:orientation=>:minMax)
   self.axPos = :l
   self.tickLblPos = :nextTo
-  @scaling = Scaling.new(:orientation=>:minMax)
-  @formatCode = ""
+  self.format_code = "General"
   self.crosses = :autoZero
   options.each do |o|
     self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}="
@@ -550,7 +569,7 @@ a customizable set of options
 

-the id of the axis +the id of the axis.

@@ -578,12 +597,12 @@ the id of the axis
 
 
+7
 8
-9
-10
+9
-
# File 'lib/axlsx/drawing/axis.rb', line 8
+      
# File 'lib/axlsx/drawing/axis.rb', line 7
 
 def axId
   @axId
@@ -692,12 +711,12 @@ The perpendicular axis
       
 
 
+11
 12
-13
-14
+13
-
# File 'lib/axlsx/drawing/axis.rb', line 12
+      
# File 'lib/axlsx/drawing/axis.rb', line 11
 
 def crossAx
   @crossAx
@@ -779,7 +798,7 @@ specifies how the perpendicular axis is crossed must be one of [:autoZero,
 

-The number format format code for this axis +The number format format code for this axis default :General

@@ -858,6 +877,13 @@ The scaling of the axis +

See Also:

+ +
@@ -1003,7 +1029,6 @@ The document builder instance this objects xml will be added to.
 
 
-67
 68
 69
 70
@@ -1012,10 +1037,11 @@ The document builder instance this objects xml will be added to.
 73
 74
 75
-76
+76 +77
-
# File 'lib/axlsx/drawing/axis.rb', line 67
+      
# File 'lib/axlsx/drawing/axis.rb', line 68
 
 def to_xml(xml)
   xml.send('c:axId', :val=>@axId)
@@ -1038,7 +1064,7 @@ The document builder instance this objects xml will be added to.
 
     
     
-- 
cgit v1.2.3