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/BarSeries.html | 127 +++++++++++++++++++++++++++-------------------- 1 file changed, 73 insertions(+), 54 deletions(-) (limited to 'doc/Axlsx/BarSeries.html') diff --git a/doc/Axlsx/BarSeries.html b/doc/Axlsx/BarSeries.html index 14660129..44a77f03 100644 --- a/doc/Axlsx/BarSeries.html +++ b/doc/Axlsx/BarSeries.html @@ -99,13 +99,15 @@
Note: -
-

The recommended way to manage series is to use Chart#add_series

+

+The recommended way to manage series is to use Chart#add_series +

- -

A BarSeries defines the title, data and labels for bar charts

+

+A BarSeries defines the title, data and labels for bar charts +

@@ -150,8 +152,9 @@ -
-

The data for this series.

+

+The data for this series. +

@@ -176,8 +179,9 @@ -
-

The labels for this series.

+

+The labels for this series. +

@@ -202,9 +206,10 @@ -
-

The shabe of the bars or columns must be one of [:percentStacked, -:clustered, :standard, :stacked].

+

+The shabe of the bars or columns must be one of [:percentStacked, +:clustered, :standard, :stacked]. +

@@ -249,8 +254,9 @@ -
-

Creates a new series.

+

+Creates a new series. +

@@ -272,8 +278,9 @@ -
-

Serializes the series.

+

+Serializes the series. +

@@ -304,8 +311,9 @@

- -

Creates a new series

+

+Creates a new series +

@@ -337,8 +345,9 @@ — -
-

a customizable set of options

+

+a customizable set of options +

@@ -409,12 +418,13 @@
# File 'lib/axlsx/drawing/bar_series.rb', line 28
 
-def initialize(chart, options={})
-  @shape = :box
-  super(chart, options)
-  self.labels = CatAxisData.new(options[:labels]) unless options[:labels].nil?
-  self.data = ValAxisData.new(options[:data]) unless options[:data].nil?
-end
+def initialize(chart, options={}) + @shape = :box + super(chart, options) + self.labels = CatAxisData.new(options[:labels]) unless options[:labels].nil? + self.data = ValAxisData.new(options[:data]) unless options[:data].nil? +end + @@ -437,8 +447,9 @@

- -

The data for this series.

+

+The data for this series. +

@@ -472,9 +483,10 @@
# File 'lib/axlsx/drawing/bar_series.rb', line 11
 
-def data
-  @data
-end
+def data + @data +end + @@ -492,8 +504,9 @@

- -

The labels for this series.

+

+The labels for this series. +

@@ -527,9 +540,10 @@
# File 'lib/axlsx/drawing/bar_series.rb', line 15
 
-def labels
-  @labels
-end
+def labels + @labels +end + @@ -547,9 +561,10 @@

- -

The shabe of the bars or columns must be one of [:percentStacked, -:clustered, :standard, :stacked]

+

+The shabe of the bars or columns must be one of [:percentStacked, +:clustered, :standard, :stacked] +

@@ -583,9 +598,10 @@
# File 'lib/axlsx/drawing/bar_series.rb', line 20
 
-def shape
-  @shape
-end
+def shape + @shape +end + @@ -607,8 +623,9 @@

- -

Serializes the series

+

+Serializes the series +

@@ -627,8 +644,9 @@ — -
-

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

+

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

@@ -666,13 +684,14 @@
# File 'lib/axlsx/drawing/bar_series.rb', line 45
 
-def to_xml(xml)
-  super(xml) do |xml_inner|
-    @labels.to_xml(xml_inner) unless @labels.nil?
-    @data.to_xml(xml_inner) unless @data.nil?
-    xml_inner.send('c:shape', :val=>@shape)
-  end      
-end
+def to_xml(xml) + super(xml) do |xml_inner| + @labels.to_xml(xml_inner) unless @labels.nil? + @data.to_xml(xml_inner) unless @data.nil? + xml_inner.send('c:shape', :val=>@shape) + end +end + @@ -683,9 +702,9 @@
-- cgit v1.2.3