From 4d16bfc43780e5d3f7368625700b583e3e98217a Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 18:11:42 +0900 Subject: adding in row_style and col_style methods to worksheet and active record 'acts_as_axlsx' to provide to_xlsx. --- doc/Axlsx/ValAxisData.html | 59 +++++++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 27 deletions(-) (limited to 'doc/Axlsx/ValAxisData.html') diff --git a/doc/Axlsx/ValAxisData.html b/doc/Axlsx/ValAxisData.html index 06cae71d..b8636123 100644 --- a/doc/Axlsx/ValAxisData.html +++ b/doc/Axlsx/ValAxisData.html @@ -98,8 +98,9 @@

Overview

- -

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

+

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

@@ -155,8 +156,9 @@ -
-

Serializes the value axis data.

+

+Serializes the value axis data. +

@@ -211,8 +213,9 @@

- -

Serializes the value axis data

+

+Serializes the value axis data +

@@ -231,8 +234,9 @@ — -
-

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

+

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

@@ -280,23 +284,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
+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 + @@ -307,9 +312,9 @@
-- cgit v1.2.3