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/LineSeries.html | 104 ++++++++++++++++++++++++++-------------------- 1 file changed, 60 insertions(+), 44 deletions(-) (limited to 'doc/Axlsx/LineSeries.html') diff --git a/doc/Axlsx/LineSeries.html b/doc/Axlsx/LineSeries.html index b2d75a69..a47310ed 100644 --- a/doc/Axlsx/LineSeries.html +++ b/doc/Axlsx/LineSeries.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 LineSeries defines the title, data and labels for line charts

+

+A LineSeries defines the title, data and labels for line 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. +

@@ -222,8 +226,9 @@ -
-

Creates a new series.

+

+Creates a new series. +

@@ -245,8 +250,9 @@ -
-

Serializes the series.

+

+Serializes the series. +

@@ -277,8 +283,9 @@

- -

Creates a new series

+

+Creates a new series +

@@ -310,8 +317,9 @@ — -
-

a customizable set of options

+

+a customizable set of options +

@@ -364,12 +372,13 @@
# File 'lib/axlsx/drawing/line_series.rb', line 20
 
-def initialize(chart, options={})
-  @labels, @data = nil, nil
-  super(chart, options)
-  @labels = CatAxisData.new(options[:labels]) unless options[:labels].nil?
-  @data = ValAxisData.new(options[:data]) unless options[:data].nil?
-end
+def initialize(chart, options={}) + @labels, @data = nil, nil + super(chart, options) + @labels = CatAxisData.new(options[:labels]) unless options[:labels].nil? + @data = ValAxisData.new(options[:data]) unless options[:data].nil? +end + @@ -392,8 +401,9 @@

- -

The data for this series.

+

+The data for this series. +

@@ -427,9 +437,10 @@
# File 'lib/axlsx/drawing/line_series.rb', line 10
 
-def data
-  @data
-end
+def data + @data +end + @@ -447,8 +458,9 @@

- -

The labels for this series.

+

+The labels for this series. +

@@ -482,9 +494,10 @@
# File 'lib/axlsx/drawing/line_series.rb', line 14
 
-def labels
-  @labels
-end
+def labels + @labels +end + @@ -506,8 +519,9 @@

- -

Serializes the series

+

+Serializes the series +

@@ -526,8 +540,9 @@ — -
-

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

+

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

@@ -564,12 +579,13 @@
# File 'lib/axlsx/drawing/line_series.rb', line 30
 
-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?
-  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? + end +end + @@ -580,9 +596,9 @@
-- cgit v1.2.3