From 058faf2581970fa18c314ad07f5658adeca32c69 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 22:08:55 +0900 Subject: update to README --- doc/Axlsx/Line3DChart.html | 222 ++++++++++++++++++++------------------------- 1 file changed, 97 insertions(+), 125 deletions(-) (limited to 'doc/Axlsx/Line3DChart.html') diff --git a/doc/Axlsx/Line3DChart.html b/doc/Axlsx/Line3DChart.html index 42667ca9..efeaea3e 100644 --- a/doc/Axlsx/Line3DChart.html +++ b/doc/Axlsx/Line3DChart.html @@ -96,10 +96,9 @@

Overview

-

-The Line3DChart is a three dimentional line chart (who would have guessed?) -that you can add to your worksheet. -

+ +

The Line3DChart is a three dimentional line chart (who would have guessed?) +that you can add to your worksheet.

@@ -109,21 +108,19 @@ that you can add to your worksheet.

Examples:

-

-Creating a chart -

+

+

Creating a chart

-
# This example creates a line in a single sheet.
-require "rubygems" # if that is your preferred way to manage gems!
-require "axlsx"
+      
# This example creates a line in a single sheet.
+require "rubygems" # if that is your preferred way to manage gems!
+require "axlsx"
 
-p = Axlsx::Package.new
-ws = p.workbook.add_worksheet
-ws.add_row :values => ["This is a chart with no data in the sheet"]
+p = Axlsx::Package.new
+ws = p.workbook.add_worksheet
+ws.add_row :values => ["This is a chart with no data in the sheet"]
 
-chart = ws.add_chart(Axlsx::Line3DChart, :start_at=> [0,1], :end_at=>[0,6], :title=>"Most Popular Pets")
-chart.add_series :data => [1, 9, 10], :labels => ["Slimy Reptiles", "Fuzzy Bunnies", "Rottweiler"]
-
+chart = ws.add_chart(Axlsx::Line3DChart, :start_at=> [0,1], :end_at=>[0,6], :title=>"Most Popular Pets") +chart.add_series :data => [1, 9, 10], :labels => ["Slimy Reptiles", "Fuzzy Bunnies", "Rottweiler"]
@@ -151,9 +148,8 @@ Creating a chart
GAP_AMOUNT_PERCENT =
-

-validation regex for gap amount percent -

+ +

validation regex for gap amount percent

@@ -163,8 +159,7 @@ validation regex for gap amount percent
-
/0*(([0-9])|([1-9][0-9])|([1-4][0-9][0-9])|500)%/
-
+
/0*(([0-9])|([1-9][0-9])|([1-4][0-9][0-9])|500)%/
@@ -196,9 +191,8 @@ validation regex for gap amount percent -

-the category axis. -

+
+

the category axis.

@@ -223,10 +217,9 @@ the category axis. -

-space between bar or column clusters, as a percentage of the bar or column -width. -

+
+

space between bar or column clusters, as a percentage of the bar or column +width.

@@ -251,9 +244,8 @@ width. -

-grouping for a column, line, or area chart. -

+
+

grouping for a column, line, or area chart.

@@ -278,9 +270,8 @@ grouping for a column, line, or area chart. -

-the category axis. -

+
+

the category axis.

@@ -305,9 +296,8 @@ the category axis. -

-the category axis. -

+
+

the category axis.

@@ -352,9 +342,8 @@ the category axis. -

-Creates a new line chart object. -

+
+

Creates a new line chart object.

@@ -376,9 +365,8 @@ Creates a new line chart object. -

-Serializes the bar chart. -

+
+

Serializes the bar chart.

@@ -409,9 +397,8 @@ Serializes the bar chart.

-

-Creates a new line chart object -

+ +

Creates a new line chart object

@@ -430,9 +417,8 @@ Creates a new line chart object — -

-The workbook that owns this chart. -

+
+

The workbook that owns this chart.

@@ -449,9 +435,8 @@ The workbook that owns this chart. — -

-a customizable set of options -

+
+

a customizable set of options

@@ -592,20 +577,19 @@ a customizable set of options
# File 'lib/axlsx/drawing/line_3D_chart.rb', line 61
 
-def initialize(frame, options={})
-  @gapDepth = nil
-  @grouping = :standard
-  @catAxId = rand(8 ** 8)
-  @valAxId = rand(8 ** 8)
-  @serAxId = rand(8 ** 8)
-  @catAxis = CatAxis.new(@catAxId, @valAxId)
-  @valAxis = ValAxis.new(@valAxId, @catAxId)
-  @serAxis = SerAxis.new(@serAxId, @valAxId)
-  super(frame, options)      
-  @series_type = LineSeries
-  @view3D = View3D.new({:perspective=>30}.merge(options))
-end
-
+def initialize(frame, options={}) + @gapDepth = nil + @grouping = :standard + @catAxId = rand(8 ** 8) + @valAxId = rand(8 ** 8) + @serAxId = rand(8 ** 8) + @catAxis = CatAxis.new(@catAxId, @valAxId) + @valAxis = ValAxis.new(@valAxId, @catAxId) + @serAxis = SerAxis.new(@serAxId, @valAxId) + super(frame, options) + @series_type = LineSeries + @view3D = View3D.new({:perspective=>30}.merge(options)) +end @@ -628,9 +612,8 @@ a customizable set of options

-

-the category axis -

+ +

the category axis

@@ -664,10 +647,9 @@ the category axis
# File 'lib/axlsx/drawing/line_3D_chart.rb', line 25
 
-def catAxis
-  @catAxis
-end
-
+def catAxis + @catAxis +end @@ -685,10 +667,9 @@ the category axis

-

-space between bar or column clusters, as a percentage of the bar or column -width. -

+ +

space between bar or column clusters, as a percentage of the bar or column +width.

@@ -722,10 +703,9 @@ width.
# File 'lib/axlsx/drawing/line_3D_chart.rb', line 37
 
-def gapDepth
-  @gapDepth
-end
-
+def gapDepth + @gapDepth +end @@ -743,10 +723,9 @@ width.

-

-grouping for a column, line, or area chart. must be one of -[:percentStacked, :clustered, :standard, :stacked] -

+ +

grouping for a column, line, or area chart. must be one of +[:percentStacked, :clustered, :standard, :stacked]

@@ -780,10 +759,9 @@ grouping for a column, line, or area chart. must be one of
# File 'lib/axlsx/drawing/line_3D_chart.rb', line 42
 
-def grouping
-  @grouping
-end
-
+def grouping + @grouping +end @@ -801,9 +779,8 @@ grouping for a column, line, or area chart. must be one of

-

-the category axis -

+ +

the category axis

@@ -837,10 +814,9 @@ the category axis
# File 'lib/axlsx/drawing/line_3D_chart.rb', line 33
 
-def serAxis
-  @serAxis
-end
-
+def serAxis + @serAxis +end @@ -858,9 +834,8 @@ the category axis

-

-the category axis -

+ +

the category axis

@@ -894,10 +869,9 @@ the category axis
# File 'lib/axlsx/drawing/line_3D_chart.rb', line 29
 
-def valAxis
-  @valAxis
-end
-
+def valAxis + @valAxis +end @@ -919,9 +893,8 @@ the category axis

-

-Serializes the bar chart -

+ +

Serializes the bar chart

@@ -968,23 +941,22 @@ Serializes the bar chart
# File 'lib/axlsx/drawing/line_3D_chart.rb', line 89
 
-def to_xml
-  super() do |xml|
-    xml.send('c:line3DChart') {
-      xml.send('c:grouping', :val=>grouping)
-      xml.send('c:varyColors', :val=>1)
-      @series.each { |ser| ser.to_xml(xml) }
-      xml.send('c:gapDepth', :val=>@gapDepth) unless @gapDepth.nil?
-      xml.send('c:axId', :val=>@catAxId)
-      xml.send('c:axId', :val=>@valAxId)
-      xml.send('c:axId', :val=>@serAxId)
-    }
-    @catAxis.to_xml(xml)
-    @valAxis.to_xml(xml)
-    @serAxis.to_xml(xml)
-  end
-end
-
+def to_xml + super() do |xml| + xml.send('c:line3DChart') { + xml.send('c:grouping', :val=>grouping) + xml.send('c:varyColors', :val=>1) + @series.each { |ser| ser.to_xml(xml) } + xml.send('c:gapDepth', :val=>@gapDepth) unless @gapDepth.nil? + xml.send('c:axId', :val=>@catAxId) + xml.send('c:axId', :val=>@valAxId) + xml.send('c:axId', :val=>@serAxId) + } + @catAxis.to_xml(xml) + @valAxis.to_xml(xml) + @serAxis.to_xml(xml) + end +end @@ -995,9 +967,9 @@ Serializes the bar chart
-- cgit v1.2.3