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/ValAxisData.html | 326 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 326 insertions(+) create mode 100644 doc/Axlsx/ValAxisData.html (limited to 'doc/Axlsx/ValAxisData.html') diff --git a/doc/Axlsx/ValAxisData.html b/doc/Axlsx/ValAxisData.html new file mode 100644 index 00000000..25145718 --- /dev/null +++ b/doc/Axlsx/ValAxisData.html @@ -0,0 +1,326 @@ + + + + + + Class: Axlsx::ValAxisData + + — Documentation by YARD 0.7.3 + + + + + + + + + + + + + + + + + + + + + + +

Class: Axlsx::ValAxisData + + + +

+ +
+ +
Inherits:
+
+ CatAxisData + + + show all + +
+ + + + + + + + + +
Defined in:
+
lib/axlsx/drawing/val_axis_data.rb
+ +
+
+ +

Overview

+
+

+The ValAxisData class manages the values for a chart value series. +

+ + +
+
+
+ + +
+ + + + + + + + + + + + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from SimpleTypedList

+

allowed_types, locked_at, serialize_as

+ + + +

+ Instance Method Summary + (collapse) +

+ + + + + + + + + + + + +

Methods inherited from CatAxisData

+

#initialize

+ + + + + + + + +

Methods inherited from SimpleTypedList

+

#<<, #==, #[]=, #delete, #delete_at, #initialize, #lock, #method_missing, #protected?, #push, #unlock

+
+

Constructor Details

+ +

This class inherits a constructor from Axlsx::CatAxisData

+ +
+
+

Dynamic Method Handling

+

+ This class handles dynamic methods through the method_missing method + + in the class Axlsx::SimpleTypedList + +

+ +
+ + +
+

Instance Method Details

+ + +
+

+ + - (String) to_xml(xml) + + + +

+
+

+Serializes the value axis data +

+ + +
+
+
+

Parameters:

+
    + +
  • + + xml + + + (Nokogiri::XML::Builder) + + + + — +

    +The document builder instance this objects xml will be added to. +

    +
    + +
  • + +
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+
+
# File 'lib/axlsx/drawing/val_axis_data.rb', line 8
+
+def to_xml(xml)
+  xml.send('c:val') {
+    xml.send('c:numRef') {
+      xml.send('c:f', Axlsx::cell_range(@list))
+      xml.send('c:numCache') {
+        xml.send('c:formatCode', 'General')
+        xml.send('c:ptCount', :val=>size)
+        each_with_index do |item, index|
+          v = item.is_a?(Cell) ? item.value : item
+          xml.send('c:pt', :idx=>index) {
+            xml.send('c:v', v) 
+          }
+        end
+      }                        
+    }
+  }
+end
+
+
+
+ +
+ +
+ + + + + \ No newline at end of file -- cgit v1.2.3