From 407b884ef349d6dec12f50006ea6268c96205a83 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 21:34:48 +0900 Subject: adding yields for package workbook, workbook styles and cols collection on worksheet to make charting easier. --- doc/Axlsx/Bar3DChart.html | 244 ++++++++++++++++++++-------------------------- 1 file changed, 106 insertions(+), 138 deletions(-) (limited to 'doc/Axlsx/Bar3DChart.html') diff --git a/doc/Axlsx/Bar3DChart.html b/doc/Axlsx/Bar3DChart.html index 2fb7ad0b..5059cd15 100644 --- a/doc/Axlsx/Bar3DChart.html +++ b/doc/Axlsx/Bar3DChart.html @@ -96,10 +96,9 @@

Overview

-

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

+ +

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

@@ -128,9 +127,8 @@ that you can add to your worksheet.
GAP_AMOUNT_PERCENT =
-

-validation regex for gap amount percent -

+ +

validation regex for gap amount percent

@@ -140,8 +138,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)%/
@@ -173,9 +170,8 @@ validation regex for gap amount percent -

-The direction of the bars in the chart must be one of [:bar, :col]. -

+
+

The direction of the bars in the chart must be one of [:bar, :col].

@@ -200,9 +196,8 @@ The direction of the bars in the chart must be one of [:bar, :col]. -

-the category axis. -

+
+

the category axis.

@@ -227,10 +222,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.

@@ -255,10 +249,9 @@ 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.

@@ -283,9 +276,8 @@ width. -

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

+
+

grouping for a column, line, or area chart.

@@ -310,10 +302,9 @@ grouping for a column, line, or area chart. -

-The shabe of the bars or columns must be one of [:cone, :coneToMax, :box, -:cylinder, :pyramid, :pyramidToMax]. -

+
+

The shabe of the bars or columns must be one of [:cone, :coneToMax, :box, +:cylinder, :pyramid, :pyramidToMax].

@@ -338,9 +329,8 @@ The shabe of the bars or columns must be one of [:cone, :coneToMax, :box, -

-the valueaxis. -

+
+

the valueaxis.

@@ -385,9 +375,8 @@ the valueaxis. -

-Creates a new bar chart object. -

+
+

Creates a new bar chart object.

@@ -409,9 +398,8 @@ Creates a new bar chart object. -

-Serializes the bar chart. -

+
+

Serializes the bar chart.

@@ -442,9 +430,8 @@ Serializes the bar chart.

-

-Creates a new bar chart object -

+ +

Creates a new bar chart object

@@ -463,9 +450,8 @@ Creates a new bar chart object — -

-The workbook that owns this chart. -

+
+

The workbook that owns this chart.

@@ -482,9 +468,8 @@ The workbook that owns this chart. — -

-a customizable set of options -

+
+

a customizable set of options

@@ -651,19 +636,18 @@ a customizable set of options
# File 'lib/axlsx/drawing/bar_3D_chart.rb', line 61
 
-def initialize(frame, options={})
-  @barDir = :bar
-  @grouping = :clustered
-  @gapWidth, @gapDepth, @shape = nil, nil, nil
-  @catAxId = rand(8 ** 8)
-  @valAxId = rand(8 ** 8)
-  @catAxis = CatAxis.new(@catAxId, @valAxId)
-  @valAxis = ValAxis.new(@valAxId, @catAxId)
-  super(frame, options)      
-  @series_type = BarSeries
-  @view3D = View3D.new({:rAngAx=>1}.merge(options))
-end
-
+def initialize(frame, options={}) + @barDir = :bar + @grouping = :clustered + @gapWidth, @gapDepth, @shape = nil, nil, nil + @catAxId = rand(8 ** 8) + @valAxId = rand(8 ** 8) + @catAxis = CatAxis.new(@catAxId, @valAxId) + @valAxis = ValAxis.new(@valAxId, @catAxId) + super(frame, options) + @series_type = BarSeries + @view3D = View3D.new({:rAngAx=>1}.merge(options)) +end @@ -686,9 +670,8 @@ a customizable set of options

-

-The direction of the bars in the chart must be one of [:bar, :col] -

+ +

The direction of the bars in the chart must be one of [:bar, :col]

@@ -722,10 +705,9 @@ The direction of the bars in the chart must be one of [:bar, :col]
# File 'lib/axlsx/drawing/bar_3D_chart.rb', line 21
 
-def barDir
-  @barDir
-end
-
+def barDir + @barDir +end @@ -743,9 +725,8 @@ The direction of the bars in the chart must be one of [:bar, :col]

-

-the category axis -

+ +

the category axis

@@ -779,10 +760,9 @@ the category axis
# File 'lib/axlsx/drawing/bar_3D_chart.rb', line 12
 
-def catAxis
-  @catAxis
-end
-
+def catAxis + @catAxis +end @@ -800,10 +780,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.

@@ -837,10 +816,9 @@ width.
# File 'lib/axlsx/drawing/bar_3D_chart.rb', line 25
 
-def gapDepth
-  @gapDepth
-end
-
+def gapDepth + @gapDepth +end @@ -858,10 +836,9 @@ 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.

@@ -895,10 +872,9 @@ width.
# File 'lib/axlsx/drawing/bar_3D_chart.rb', line 29
 
-def gapWidth
-  @gapWidth
-end
-
+def gapWidth + @gapWidth +end @@ -916,10 +892,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]

@@ -953,10 +928,9 @@ grouping for a column, line, or area chart. must be one of
# File 'lib/axlsx/drawing/bar_3D_chart.rb', line 34
 
-def grouping
-  @grouping
-end
-
+def grouping + @grouping +end @@ -974,10 +948,9 @@ grouping for a column, line, or area chart. must be one of

-

-The shabe of the bars or columns must be one of [:cone, :coneToMax, :box, -:cylinder, :pyramid, :pyramidToMax] -

+ +

The shabe of the bars or columns must be one of [:cone, :coneToMax, :box, +:cylinder, :pyramid, :pyramidToMax]

@@ -1011,10 +984,9 @@ The shabe of the bars or columns must be one of [:cone, :coneToMax, :box,
# File 'lib/axlsx/drawing/bar_3D_chart.rb', line 39
 
-def shape
-  @shape
-end
-
+def shape + @shape +end @@ -1032,9 +1004,8 @@ The shabe of the bars or columns must be one of [:cone, :coneToMax, :box,

-

-the valueaxis -

+ +

the valueaxis

@@ -1068,10 +1039,9 @@ the valueaxis
# File 'lib/axlsx/drawing/bar_3D_chart.rb', line 16
 
-def valAxis
-  @valAxis
-end
-
+def valAxis + @valAxis +end @@ -1093,9 +1063,8 @@ the valueaxis

-

-Serializes the bar chart -

+ +

Serializes the bar chart

@@ -1144,25 +1113,24 @@ Serializes the bar chart
# File 'lib/axlsx/drawing/bar_3D_chart.rb', line 109
 
-def to_xml
-  super() do |xml|
-    xml.send('c:bar3DChart') {
-      xml.send('c:barDir', :val => barDir)
-      xml.send('c:grouping', :val=>grouping)
-      xml.send('c:varyColors', :val=>1)
-      @series.each { |ser| ser.to_xml(xml) }
-      xml.send('c:gapWidth', :val=>@gapWidth) unless @gapWidth.nil?
-      xml.send('c:gapDepth', :val=>@gapDepth) unless @gapDepth.nil?
-      xml.send('c:shape', :val=>@shape) unless @shape.nil?
-      xml.send('c:axId', :val=>@catAxId)
-      xml.send('c:axId', :val=>@valAxId)
-      xml.send('c:axId', :val=>0)
-    }
-    @catAxis.to_xml(xml)
-    @valAxis.to_xml(xml)        
-  end
-end
-
+def to_xml + super() do |xml| + xml.send('c:bar3DChart') { + xml.send('c:barDir', :val => barDir) + xml.send('c:grouping', :val=>grouping) + xml.send('c:varyColors', :val=>1) + @series.each { |ser| ser.to_xml(xml) } + xml.send('c:gapWidth', :val=>@gapWidth) unless @gapWidth.nil? + xml.send('c:gapDepth', :val=>@gapDepth) unless @gapDepth.nil? + xml.send('c:shape', :val=>@shape) unless @shape.nil? + xml.send('c:axId', :val=>@catAxId) + xml.send('c:axId', :val=>@valAxId) + xml.send('c:axId', :val=>0) + } + @catAxis.to_xml(xml) + @valAxis.to_xml(xml) + end +end @@ -1173,9 +1141,9 @@ Serializes the bar chart
-- cgit v1.2.3