From cdfc7251bde8347678d355e5fe65fc20e120bc23 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 21:45:19 +0900 Subject: updating docs for 1.0.10a release --- doc/Axlsx/Line3DChart.html | 222 +++++++++++++++++++++++++-------------------- 1 file changed, 125 insertions(+), 97 deletions(-) (limited to 'doc/Axlsx/Line3DChart.html') diff --git a/doc/Axlsx/Line3DChart.html b/doc/Axlsx/Line3DChart.html index 5770eddb..9fa25d73 100644 --- a/doc/Axlsx/Line3DChart.html +++ b/doc/Axlsx/Line3DChart.html @@ -96,9 +96,10 @@

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. +

@@ -108,19 +109,21 @@ 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"] +
@@ -148,8 +151,9 @@ that you can add to your worksheet.

GAP_AMOUNT_PERCENT =
- -

validation regex for gap amount percent

+

+validation regex for gap amount percent +

@@ -159,7 +163,8 @@ that you can add to your worksheet.

-
/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)%/
+
@@ -191,8 +196,9 @@ that you can add to your worksheet.

-
-

the category axis.

+

+the category axis. +

@@ -217,9 +223,10 @@ that you can add to your worksheet.

-
-

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. +

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

-
-

grouping for a column, line, or area chart.

+

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

@@ -270,8 +278,9 @@ width.

-
-

the category axis.

+

+the category axis. +

@@ -296,8 +305,9 @@ width.

-
-

the category axis.

+

+the category axis. +

@@ -342,8 +352,9 @@ width.

-
-

Creates a new line chart object.

+

+Creates a new line chart object. +

@@ -365,8 +376,9 @@ width.

-
-

Serializes the bar chart.

+

+Serializes the bar chart. +

@@ -397,8 +409,9 @@ width.

- -

Creates a new line chart object

+

+Creates a new line chart object +

@@ -417,8 +430,9 @@ width.

— -
-

The workbook that owns this chart.

+

+The workbook that owns this chart. +

@@ -435,8 +449,9 @@ width.

— -
-

a customizable set of options

+

+a customizable set of options +

@@ -577,19 +592,20 @@ width.

# 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 + @@ -612,8 +628,9 @@ width.

- -

the category axis

+

+the category axis +

@@ -647,9 +664,10 @@ width.

# File 'lib/axlsx/drawing/line_3D_chart.rb', line 25
 
-def catAxis
-  @catAxis
-end
+def catAxis + @catAxis +end + @@ -667,9 +685,10 @@ width.

- -

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. +

@@ -703,9 +722,10 @@ width.

# File 'lib/axlsx/drawing/line_3D_chart.rb', line 37
 
-def gapDepth
-  @gapDepth
-end
+def gapDepth + @gapDepth +end + @@ -723,9 +743,10 @@ 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] +

@@ -759,9 +780,10 @@ width.

# File 'lib/axlsx/drawing/line_3D_chart.rb', line 42
 
-def grouping
-  @grouping
-end
+def grouping + @grouping +end + @@ -779,8 +801,9 @@ width.

- -

the category axis

+

+the category axis +

@@ -814,9 +837,10 @@ width.

# File 'lib/axlsx/drawing/line_3D_chart.rb', line 33
 
-def serAxis
-  @serAxis
-end
+def serAxis + @serAxis +end + @@ -834,8 +858,9 @@ width.

- -

the category axis

+

+the category axis +

@@ -869,9 +894,10 @@ width.

# File 'lib/axlsx/drawing/line_3D_chart.rb', line 29
 
-def valAxis
-  @valAxis
-end
+def valAxis + @valAxis +end + @@ -893,8 +919,9 @@ width.

- -

Serializes the bar chart

+

+Serializes the bar chart +

@@ -941,22 +968,23 @@ width.

# 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 + @@ -967,9 +995,9 @@ width.

-- cgit v1.2.3