axlsx 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +14 -0
- data/README.md +22 -21
- data/Rakefile +1 -1
- data/axlsx.gemspec +36 -0
- data/doc/Axlsx.html +373 -559
- data/doc/Axlsx/App.html +257 -360
- data/doc/Axlsx/Axis.html +113 -144
- data/doc/Axlsx/Bar3DChart.html +122 -152
- data/doc/Axlsx/BarSeries.html +67 -81
- data/doc/Axlsx/Border.html +96 -119
- data/doc/Axlsx/BorderPr.html +89 -114
- data/doc/Axlsx/CatAxis.html +79 -104
- data/doc/Axlsx/CatAxisData.html +40 -54
- data/doc/Axlsx/Cell.html +193 -679
- data/doc/Axlsx/CellAlignment.html +116 -157
- data/doc/Axlsx/CellProtection.html +50 -68
- data/doc/Axlsx/CellStyle.html +78 -106
- data/doc/Axlsx/Chart.html +361 -432
- data/doc/Axlsx/Color.html +56 -78
- data/doc/Axlsx/ContentType.html +28 -41
- data/doc/Axlsx/Core.html +43 -55
- data/doc/Axlsx/DataTypeValidator.html +34 -43
- data/doc/Axlsx/Default.html +55 -81
- data/doc/Axlsx/Drawing.html +322 -412
- data/doc/Axlsx/Fill.html +34 -47
- data/doc/Axlsx/Font.html +157 -207
- data/doc/Axlsx/GradientFill.html +90 -122
- data/doc/Axlsx/GradientStop.html +36 -50
- data/doc/Axlsx/GraphicFrame.html +106 -130
- data/doc/Axlsx/Line3DChart.html +108 -134
- data/doc/Axlsx/LineSeries.html +58 -67
- data/doc/Axlsx/Marker.html +84 -111
- data/doc/Axlsx/NumFmt.html +83 -102
- data/doc/Axlsx/OneCellAnchor.html +158 -196
- data/doc/Axlsx/Override.html +60 -92
- data/doc/Axlsx/Package.html +190 -759
- data/doc/Axlsx/PatternFill.html +78 -99
- data/doc/Axlsx/Pic.html +451 -405
- data/doc/Axlsx/Pie3DChart.html +33 -42
- data/doc/Axlsx/PieSeries.html +68 -80
- data/doc/Axlsx/RegexValidator.html +15 -20
- data/doc/Axlsx/Relationship.html +49 -66
- data/doc/Axlsx/Relationships.html +28 -41
- data/doc/Axlsx/RestrictionValidator.html +23 -32
- data/doc/Axlsx/Row.html +132 -161
- data/doc/Axlsx/Scaling.html +71 -90
- data/doc/Axlsx/SerAxis.html +61 -79
- data/doc/Axlsx/Series.html +125 -201
- data/doc/Axlsx/SeriesTitle.html +26 -31
- data/doc/Axlsx/Styles.html +286 -355
- data/doc/Axlsx/TableStyle.html +62 -87
- data/doc/Axlsx/TableStyleElement.html +84 -104
- data/doc/Axlsx/TableStyles.html +59 -82
- data/doc/Axlsx/Title.html +58 -155
- data/doc/Axlsx/TwoCellAnchor.html +165 -204
- data/doc/Axlsx/ValAxis.html +39 -53
- data/doc/Axlsx/ValAxisData.html +29 -39
- data/doc/Axlsx/View3D.html +93 -122
- data/doc/Axlsx/Workbook.html +359 -362
- data/doc/Axlsx/Worksheet.html +471 -816
- data/doc/Axlsx/Xf.html +341 -296
- data/doc/_index.html +7 -11
- data/doc/class_list.html +1 -1
- data/doc/file.LICENSE.html +86 -0
- data/doc/file.README.html +105 -107
- data/doc/file_list.html +3 -0
- data/doc/frames.html +1 -1
- data/doc/index.html +105 -107
- data/doc/method_list.html +426 -602
- data/doc/top-level-namespace.html +3 -3
- data/examples/example.rb +20 -1
- data/lib/axlsx.rb +20 -15
- data/lib/axlsx/content_type/default.rb +8 -3
- data/lib/axlsx/content_type/override.rb +11 -4
- data/lib/axlsx/doc_props/app.rb +53 -23
- data/lib/axlsx/drawing/axis.rb +16 -5
- data/lib/axlsx/drawing/bar_3D_chart.rb +15 -7
- data/lib/axlsx/drawing/bar_series.rb +7 -5
- data/lib/axlsx/drawing/cat_axis.rb +10 -3
- data/lib/axlsx/drawing/chart.rb +21 -15
- data/lib/axlsx/drawing/drawing.rb +16 -30
- data/lib/axlsx/drawing/graphic_frame.rb +2 -4
- data/lib/axlsx/drawing/line_3D_chart.rb +5 -2
- data/lib/axlsx/drawing/line_series.rb +6 -5
- data/lib/axlsx/drawing/marker.rb +9 -5
- data/lib/axlsx/drawing/one_cell_anchor.rb +7 -7
- data/lib/axlsx/drawing/pic.rb +29 -37
- data/lib/axlsx/drawing/pie_series.rb +7 -5
- data/lib/axlsx/drawing/scaling.rb +11 -5
- data/lib/axlsx/drawing/ser_axis.rb +6 -2
- data/lib/axlsx/drawing/series.rb +11 -11
- data/lib/axlsx/drawing/series_title.rb +1 -1
- data/lib/axlsx/drawing/title.rb +5 -12
- data/lib/axlsx/drawing/two_cell_anchor.rb +2 -3
- data/lib/axlsx/drawing/val_axis.rb +2 -2
- data/lib/axlsx/drawing/view_3D.rb +16 -9
- data/lib/axlsx/package.rb +25 -27
- data/lib/axlsx/rels/relationship.rb +4 -2
- data/lib/axlsx/stylesheet/border.rb +9 -4
- data/lib/axlsx/stylesheet/border_pr.rb +7 -4
- data/lib/axlsx/stylesheet/cell_alignment.rb +18 -9
- data/lib/axlsx/stylesheet/cell_protection.rb +5 -2
- data/lib/axlsx/stylesheet/cell_style.rb +12 -7
- data/lib/axlsx/stylesheet/color.rb +8 -6
- data/lib/axlsx/stylesheet/fill.rb +2 -1
- data/lib/axlsx/stylesheet/font.rb +24 -13
- data/lib/axlsx/stylesheet/gradient_fill.rb +16 -10
- data/lib/axlsx/stylesheet/gradient_stop.rb +5 -3
- data/lib/axlsx/stylesheet/num_fmt.rb +4 -2
- data/lib/axlsx/stylesheet/pattern_fill.rb +6 -4
- data/lib/axlsx/stylesheet/styles.rb +12 -12
- data/lib/axlsx/stylesheet/table_style.rb +6 -3
- data/lib/axlsx/stylesheet/table_style_element.rb +9 -4
- data/lib/axlsx/stylesheet/table_styles.rb +4 -4
- data/lib/axlsx/stylesheet/xf.rb +52 -31
- data/lib/axlsx/util/validators.rb +3 -3
- data/lib/axlsx/version.rb +1 -1
- data/lib/axlsx/workbook/workbook.rb +8 -9
- data/lib/axlsx/workbook/worksheet/cell.rb +25 -16
- data/lib/axlsx/workbook/worksheet/row.rb +2 -4
- data/lib/axlsx/workbook/worksheet/worksheet.rb +23 -32
- data/test/drawing/tc_one_cell_anchor.rb +1 -1
- metadata +135 -165
- data/doc/Axlsx/SimpleTypedList.html +0 -1686
- data/lib/schema/dc.xsd~ +0 -118
- data/lib/schema/dcterms.xsd~ +0 -331
- data/lib/schema/opc-coreProperties.xsd~ +0 -50
- data/test/drawing/tc_line_series.tc~ +0 -34
data/doc/Axlsx/Bar3DChart.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Axlsx::Bar3DChart
|
8
8
|
|
9
|
-
—
|
9
|
+
— AXLSX
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -96,10 +96,9 @@
|
|
96
96
|
|
97
97
|
<h2>Overview</h2><div class="docstring">
|
98
98
|
<div class="discussion">
|
99
|
-
|
100
|
-
The Bar3DChart is a three dimentional barchart (who would have guessed?)
|
101
|
-
that you can add to your worksheet
|
102
|
-
</p>
|
99
|
+
|
100
|
+
<p>The Bar3DChart is a three dimentional barchart (who would have guessed?)
|
101
|
+
that you can add to your worksheet.</p>
|
103
102
|
|
104
103
|
|
105
104
|
</div>
|
@@ -128,9 +127,8 @@ that you can add to your worksheet.
|
|
128
127
|
<dt id="GAP_AMOUNT_PERCENT-constant" class="">GAP_AMOUNT_PERCENT =
|
129
128
|
<div class="docstring">
|
130
129
|
<div class="discussion">
|
131
|
-
|
132
|
-
validation regex for gap amount percent
|
133
|
-
</p>
|
130
|
+
|
131
|
+
<p>validation regex for gap amount percent</p>
|
134
132
|
|
135
133
|
|
136
134
|
</div>
|
@@ -140,8 +138,7 @@ validation regex for gap amount percent
|
|
140
138
|
|
141
139
|
</div>
|
142
140
|
</dt>
|
143
|
-
<dd><pre class="code"><span class='
|
144
|
-
</pre></dd>
|
141
|
+
<dd><pre class="code"><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>0*(([0-9])|([1-9][0-9])|([1-4][0-9][0-9])|500)%</span><span class='regexp_end'>/</span></span></pre></dd>
|
145
142
|
|
146
143
|
</dl>
|
147
144
|
|
@@ -173,9 +170,8 @@ validation regex for gap amount percent
|
|
173
170
|
|
174
171
|
|
175
172
|
|
176
|
-
<span class="summary_desc"><div class='inline'
|
177
|
-
The direction of the bars in the chart must be one of [:bar, :col]
|
178
|
-
</p>
|
173
|
+
<span class="summary_desc"><div class='inline'>
|
174
|
+
<p>The direction of the bars in the chart must be one of [:bar, :col].</p>
|
179
175
|
</div></span>
|
180
176
|
|
181
177
|
</li>
|
@@ -200,9 +196,8 @@ The direction of the bars in the chart must be one of [:bar, :col].
|
|
200
196
|
|
201
197
|
|
202
198
|
|
203
|
-
<span class="summary_desc"><div class='inline'
|
204
|
-
the category axis
|
205
|
-
</p>
|
199
|
+
<span class="summary_desc"><div class='inline'>
|
200
|
+
<p>the category axis.</p>
|
206
201
|
</div></span>
|
207
202
|
|
208
203
|
</li>
|
@@ -227,10 +222,9 @@ the category axis.
|
|
227
222
|
|
228
223
|
|
229
224
|
|
230
|
-
<span class="summary_desc"><div class='inline'
|
231
|
-
space between bar or column clusters, as a percentage of the bar or column
|
232
|
-
width
|
233
|
-
</p>
|
225
|
+
<span class="summary_desc"><div class='inline'>
|
226
|
+
<p>space between bar or column clusters, as a percentage of the bar or column
|
227
|
+
width.</p>
|
234
228
|
</div></span>
|
235
229
|
|
236
230
|
</li>
|
@@ -255,10 +249,9 @@ width.
|
|
255
249
|
|
256
250
|
|
257
251
|
|
258
|
-
<span class="summary_desc"><div class='inline'
|
259
|
-
space between bar or column clusters, as a percentage of the bar or column
|
260
|
-
width
|
261
|
-
</p>
|
252
|
+
<span class="summary_desc"><div class='inline'>
|
253
|
+
<p>space between bar or column clusters, as a percentage of the bar or column
|
254
|
+
width.</p>
|
262
255
|
</div></span>
|
263
256
|
|
264
257
|
</li>
|
@@ -283,9 +276,8 @@ width.
|
|
283
276
|
|
284
277
|
|
285
278
|
|
286
|
-
<span class="summary_desc"><div class='inline'
|
287
|
-
grouping for a column, line, or area chart
|
288
|
-
</p>
|
279
|
+
<span class="summary_desc"><div class='inline'>
|
280
|
+
<p>grouping for a column, line, or area chart.</p>
|
289
281
|
</div></span>
|
290
282
|
|
291
283
|
</li>
|
@@ -310,10 +302,9 @@ grouping for a column, line, or area chart.
|
|
310
302
|
|
311
303
|
|
312
304
|
|
313
|
-
<span class="summary_desc"><div class='inline'
|
314
|
-
The shabe of the bars or columns must be one of
|
315
|
-
:cylinder, :pyramid, :pyramidToMax]
|
316
|
-
</p>
|
305
|
+
<span class="summary_desc"><div class='inline'>
|
306
|
+
<p>The shabe of the bars or columns must be one of [:cone, :coneToMax, :box,
|
307
|
+
:cylinder, :pyramid, :pyramidToMax].</p>
|
317
308
|
</div></span>
|
318
309
|
|
319
310
|
</li>
|
@@ -338,9 +329,8 @@ The shabe of the bars or columns must be one of [:cone, :coneToMax, :box,
|
|
338
329
|
|
339
330
|
|
340
331
|
|
341
|
-
<span class="summary_desc"><div class='inline'
|
342
|
-
the valueaxis
|
343
|
-
</p>
|
332
|
+
<span class="summary_desc"><div class='inline'>
|
333
|
+
<p>the valueaxis.</p>
|
344
334
|
</div></span>
|
345
335
|
|
346
336
|
</li>
|
@@ -356,7 +346,7 @@ the valueaxis.
|
|
356
346
|
|
357
347
|
|
358
348
|
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Chart.html" title="Axlsx::Chart (class)">Chart</a></span></h3>
|
359
|
-
<p class="inherited"><span class='object_link'><a href="Chart.html#graphic_frame-instance_method" title="Axlsx::Chart#graphic_frame (method)">graphic_frame</a></span>, <span class='object_link'><a href="Chart.html#
|
349
|
+
<p class="inherited"><span class='object_link'><a href="Chart.html#graphic_frame-instance_method" title="Axlsx::Chart#graphic_frame (method)">graphic_frame</a></span>, <span class='object_link'><a href="Chart.html#series-instance_method" title="Axlsx::Chart#series (method)">series</a></span>, <span class='object_link'><a href="Chart.html#series_type-instance_method" title="Axlsx::Chart#series_type (method)">series_type</a></span>, <span class='object_link'><a href="Chart.html#show_legend-instance_method" title="Axlsx::Chart#show_legend (method)">show_legend</a></span>, <span class='object_link'><a href="Chart.html#style-instance_method" title="Axlsx::Chart#style (method)">style</a></span>, <span class='object_link'><a href="Chart.html#title-instance_method" title="Axlsx::Chart#title (method)">title</a></span>, <span class='object_link'><a href="Chart.html#view3D-instance_method" title="Axlsx::Chart#view3D (method)">view3D</a></span></p>
|
360
350
|
|
361
351
|
|
362
352
|
|
@@ -385,9 +375,8 @@ the valueaxis.
|
|
385
375
|
|
386
376
|
|
387
377
|
|
388
|
-
<span class="summary_desc"><div class='inline'
|
389
|
-
Creates a new bar chart object
|
390
|
-
</p>
|
378
|
+
<span class="summary_desc"><div class='inline'>
|
379
|
+
<p>Creates a new bar chart object.</p>
|
391
380
|
</div></span>
|
392
381
|
|
393
382
|
</li>
|
@@ -409,9 +398,8 @@ Creates a new bar chart object.
|
|
409
398
|
|
410
399
|
|
411
400
|
|
412
|
-
<span class="summary_desc"><div class='inline'
|
413
|
-
Serializes the bar chart
|
414
|
-
</p>
|
401
|
+
<span class="summary_desc"><div class='inline'>
|
402
|
+
<p>Serializes the bar chart.</p>
|
415
403
|
</div></span>
|
416
404
|
|
417
405
|
</li>
|
@@ -429,7 +417,7 @@ Serializes the bar chart.
|
|
429
417
|
|
430
418
|
|
431
419
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Chart.html" title="Axlsx::Chart (class)">Chart</a></span></h3>
|
432
|
-
<p class="inherited"><span class='object_link'><a href="Chart.html#add_series-instance_method" title="Axlsx::Chart#add_series (method)">#add_series</a></span>, <span class='object_link'><a href="Chart.html#end_at-instance_method" title="Axlsx::Chart#end_at (method)">#end_at</a></span>, <span class='object_link'><a href="Chart.html#from-instance_method" title="Axlsx::Chart#from (method)">#from</a></span>, <span class='object_link'><a href="Chart.html#start_at-instance_method" title="Axlsx::Chart#start_at (method)">#start_at</a></span>, <span class='object_link'><a href="Chart.html#to-instance_method" title="Axlsx::Chart#to (method)">#to</a></span></p>
|
420
|
+
<p class="inherited"><span class='object_link'><a href="Chart.html#add_series-instance_method" title="Axlsx::Chart#add_series (method)">#add_series</a></span>, <span class='object_link'><a href="Chart.html#end_at-instance_method" title="Axlsx::Chart#end_at (method)">#end_at</a></span>, <span class='object_link'><a href="Chart.html#from-instance_method" title="Axlsx::Chart#from (method)">#from</a></span>, <span class='object_link'><a href="Chart.html#index-instance_method" title="Axlsx::Chart#index (method)">#index</a></span>, <span class='object_link'><a href="Chart.html#pn-instance_method" title="Axlsx::Chart#pn (method)">#pn</a></span>, <span class='object_link'><a href="Chart.html#start_at-instance_method" title="Axlsx::Chart#start_at (method)">#start_at</a></span>, <span class='object_link'><a href="Chart.html#to-instance_method" title="Axlsx::Chart#to (method)">#to</a></span></p>
|
433
421
|
<div id="constructor_details" class="method_details_list">
|
434
422
|
<h2>Constructor Details</h2>
|
435
423
|
|
@@ -442,9 +430,8 @@ Serializes the bar chart.
|
|
442
430
|
|
443
431
|
</p><div class="docstring">
|
444
432
|
<div class="discussion">
|
445
|
-
|
446
|
-
Creates a new bar chart object
|
447
|
-
</p>
|
433
|
+
|
434
|
+
<p>Creates a new bar chart object</p>
|
448
435
|
|
449
436
|
|
450
437
|
</div>
|
@@ -463,9 +450,8 @@ Creates a new bar chart object
|
|
463
450
|
|
464
451
|
|
465
452
|
—
|
466
|
-
<div class='inline'
|
467
|
-
The workbook that owns this chart
|
468
|
-
</p>
|
453
|
+
<div class='inline'>
|
454
|
+
<p>The workbook that owns this chart.</p>
|
469
455
|
</div>
|
470
456
|
|
471
457
|
</li>
|
@@ -482,9 +468,8 @@ The workbook that owns this chart.
|
|
482
468
|
|
483
469
|
|
484
470
|
—
|
485
|
-
<div class='inline'
|
486
|
-
a customizable set of options
|
487
|
-
</p>
|
471
|
+
<div class='inline'>
|
472
|
+
<p>a customizable set of options</p>
|
488
473
|
</div>
|
489
474
|
|
490
475
|
</li>
|
@@ -645,23 +630,24 @@ a customizable set of options
|
|
645
630
|
68
|
646
631
|
69
|
647
632
|
70
|
648
|
-
71
|
633
|
+
71
|
634
|
+
72</pre>
|
649
635
|
</td>
|
650
636
|
<td>
|
651
637
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/bar_3D_chart.rb', line 61</span>
|
652
638
|
|
653
|
-
<span class='
|
654
|
-
<span class='
|
655
|
-
<span class='
|
656
|
-
<span class='
|
657
|
-
<span class='
|
658
|
-
<span class='
|
659
|
-
<span class='
|
660
|
-
<span class='
|
661
|
-
<span class='
|
662
|
-
<span class='
|
663
|
-
<span class='
|
664
|
-
</pre>
|
639
|
+
<span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id frame'>frame</span><span class='comma'>,</span> <span class='id options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
640
|
+
<span class='ivar'>@barDir</span> <span class='op'>=</span> <span class='symbol'>:bar</span>
|
641
|
+
<span class='ivar'>@grouping</span> <span class='op'>=</span> <span class='symbol'>:clustered</span>
|
642
|
+
<span class='ivar'>@gapWidth</span><span class='comma'>,</span> <span class='ivar'>@gapDepth</span><span class='comma'>,</span> <span class='ivar'>@shape</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span>
|
643
|
+
<span class='ivar'>@catAxId</span> <span class='op'>=</span> <span class='id rand'>rand</span><span class='lparen'>(</span><span class='int'>8</span> <span class='op'>**</span> <span class='int'>8</span><span class='rparen'>)</span>
|
644
|
+
<span class='ivar'>@valAxId</span> <span class='op'>=</span> <span class='id rand'>rand</span><span class='lparen'>(</span><span class='int'>8</span> <span class='op'>**</span> <span class='int'>8</span><span class='rparen'>)</span>
|
645
|
+
<span class='ivar'>@catAxis</span> <span class='op'>=</span> <span class='const'>CatAxis</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='ivar'>@catAxId</span><span class='comma'>,</span> <span class='ivar'>@valAxId</span><span class='rparen'>)</span>
|
646
|
+
<span class='ivar'>@valAxis</span> <span class='op'>=</span> <span class='const'>ValAxis</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='ivar'>@valAxId</span><span class='comma'>,</span> <span class='ivar'>@catAxId</span><span class='rparen'>)</span>
|
647
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id frame'>frame</span><span class='comma'>,</span> <span class='id options'>options</span><span class='rparen'>)</span>
|
648
|
+
<span class='ivar'>@series_type</span> <span class='op'>=</span> <span class='const'>BarSeries</span>
|
649
|
+
<span class='ivar'>@view3D</span> <span class='op'>=</span> <span class='const'>View3D</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='symbol'>:rAngAx</span><span class='op'>=></span><span class='int'>1</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id merge'>merge</span><span class='lparen'>(</span><span class='id options'>options</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
650
|
+
<span class='kw'>end</span></pre>
|
665
651
|
</td>
|
666
652
|
</tr>
|
667
653
|
</table>
|
@@ -684,9 +670,8 @@ a customizable set of options
|
|
684
670
|
|
685
671
|
</p><div class="docstring">
|
686
672
|
<div class="discussion">
|
687
|
-
|
688
|
-
The direction of the bars in the chart must be one of [:bar, :col]
|
689
|
-
</p>
|
673
|
+
|
674
|
+
<p>The direction of the bars in the chart must be one of [:bar, :col]</p>
|
690
675
|
|
691
676
|
|
692
677
|
</div>
|
@@ -720,10 +705,9 @@ The direction of the bars in the chart must be one of [:bar, :col]
|
|
720
705
|
<td>
|
721
706
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/bar_3D_chart.rb', line 21</span>
|
722
707
|
|
723
|
-
<span class='
|
724
|
-
<span class='
|
725
|
-
<span class='
|
726
|
-
</pre>
|
708
|
+
<span class='kw'>def</span> <span class='id barDir'>barDir</span>
|
709
|
+
<span class='ivar'>@barDir</span>
|
710
|
+
<span class='kw'>end</span></pre>
|
727
711
|
</td>
|
728
712
|
</tr>
|
729
713
|
</table>
|
@@ -741,9 +725,8 @@ The direction of the bars in the chart must be one of [:bar, :col]
|
|
741
725
|
|
742
726
|
</p><div class="docstring">
|
743
727
|
<div class="discussion">
|
744
|
-
|
745
|
-
the category axis
|
746
|
-
</p>
|
728
|
+
|
729
|
+
<p>the category axis</p>
|
747
730
|
|
748
731
|
|
749
732
|
</div>
|
@@ -777,10 +760,9 @@ the category axis
|
|
777
760
|
<td>
|
778
761
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/bar_3D_chart.rb', line 12</span>
|
779
762
|
|
780
|
-
<span class='
|
781
|
-
<span class='
|
782
|
-
<span class='
|
783
|
-
</pre>
|
763
|
+
<span class='kw'>def</span> <span class='id catAxis'>catAxis</span>
|
764
|
+
<span class='ivar'>@catAxis</span>
|
765
|
+
<span class='kw'>end</span></pre>
|
784
766
|
</td>
|
785
767
|
</tr>
|
786
768
|
</table>
|
@@ -798,10 +780,9 @@ the category axis
|
|
798
780
|
|
799
781
|
</p><div class="docstring">
|
800
782
|
<div class="discussion">
|
801
|
-
|
802
|
-
space between bar or column clusters, as a percentage of the bar or column
|
803
|
-
width
|
804
|
-
</p>
|
783
|
+
|
784
|
+
<p>space between bar or column clusters, as a percentage of the bar or column
|
785
|
+
width.</p>
|
805
786
|
|
806
787
|
|
807
788
|
</div>
|
@@ -835,10 +816,9 @@ width.
|
|
835
816
|
<td>
|
836
817
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/bar_3D_chart.rb', line 25</span>
|
837
818
|
|
838
|
-
<span class='
|
839
|
-
<span class='
|
840
|
-
<span class='
|
841
|
-
</pre>
|
819
|
+
<span class='kw'>def</span> <span class='id gapDepth'>gapDepth</span>
|
820
|
+
<span class='ivar'>@gapDepth</span>
|
821
|
+
<span class='kw'>end</span></pre>
|
842
822
|
</td>
|
843
823
|
</tr>
|
844
824
|
</table>
|
@@ -856,10 +836,9 @@ width.
|
|
856
836
|
|
857
837
|
</p><div class="docstring">
|
858
838
|
<div class="discussion">
|
859
|
-
|
860
|
-
space between bar or column clusters, as a percentage of the bar or column
|
861
|
-
width
|
862
|
-
</p>
|
839
|
+
|
840
|
+
<p>space between bar or column clusters, as a percentage of the bar or column
|
841
|
+
width.</p>
|
863
842
|
|
864
843
|
|
865
844
|
</div>
|
@@ -893,10 +872,9 @@ width.
|
|
893
872
|
<td>
|
894
873
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/bar_3D_chart.rb', line 29</span>
|
895
874
|
|
896
|
-
<span class='
|
897
|
-
<span class='
|
898
|
-
<span class='
|
899
|
-
</pre>
|
875
|
+
<span class='kw'>def</span> <span class='id gapWidth'>gapWidth</span>
|
876
|
+
<span class='ivar'>@gapWidth</span>
|
877
|
+
<span class='kw'>end</span></pre>
|
900
878
|
</td>
|
901
879
|
</tr>
|
902
880
|
</table>
|
@@ -914,10 +892,9 @@ width.
|
|
914
892
|
|
915
893
|
</p><div class="docstring">
|
916
894
|
<div class="discussion">
|
917
|
-
|
918
|
-
grouping for a column, line, or area chart. must be one of
|
919
|
-
[:percentStacked, :clustered, :standard, :stacked]
|
920
|
-
</p>
|
895
|
+
|
896
|
+
<p>grouping for a column, line, or area chart. must be one of
|
897
|
+
[:percentStacked, :clustered, :standard, :stacked]</p>
|
921
898
|
|
922
899
|
|
923
900
|
</div>
|
@@ -951,10 +928,9 @@ grouping for a column, line, or area chart. must be one of
|
|
951
928
|
<td>
|
952
929
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/bar_3D_chart.rb', line 34</span>
|
953
930
|
|
954
|
-
<span class='
|
955
|
-
<span class='
|
956
|
-
<span class='
|
957
|
-
</pre>
|
931
|
+
<span class='kw'>def</span> <span class='id grouping'>grouping</span>
|
932
|
+
<span class='ivar'>@grouping</span>
|
933
|
+
<span class='kw'>end</span></pre>
|
958
934
|
</td>
|
959
935
|
</tr>
|
960
936
|
</table>
|
@@ -972,10 +948,9 @@ grouping for a column, line, or area chart. must be one of
|
|
972
948
|
|
973
949
|
</p><div class="docstring">
|
974
950
|
<div class="discussion">
|
975
|
-
|
976
|
-
The shabe of the bars or columns must be one of
|
977
|
-
:cylinder, :pyramid, :pyramidToMax]
|
978
|
-
</p>
|
951
|
+
|
952
|
+
<p>The shabe of the bars or columns must be one of [:cone, :coneToMax, :box,
|
953
|
+
:cylinder, :pyramid, :pyramidToMax]</p>
|
979
954
|
|
980
955
|
|
981
956
|
</div>
|
@@ -1009,10 +984,9 @@ The shabe of the bars or columns must be one of [:cone, :coneToMax, :box,
|
|
1009
984
|
<td>
|
1010
985
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/bar_3D_chart.rb', line 39</span>
|
1011
986
|
|
1012
|
-
<span class='
|
1013
|
-
<span class='
|
1014
|
-
<span class='
|
1015
|
-
</pre>
|
987
|
+
<span class='kw'>def</span> <span class='id shape'>shape</span>
|
988
|
+
<span class='ivar'>@shape</span>
|
989
|
+
<span class='kw'>end</span></pre>
|
1016
990
|
</td>
|
1017
991
|
</tr>
|
1018
992
|
</table>
|
@@ -1030,9 +1004,8 @@ The shabe of the bars or columns must be one of [:cone, :coneToMax, :box,
|
|
1030
1004
|
|
1031
1005
|
</p><div class="docstring">
|
1032
1006
|
<div class="discussion">
|
1033
|
-
|
1034
|
-
the valueaxis
|
1035
|
-
</p>
|
1007
|
+
|
1008
|
+
<p>the valueaxis</p>
|
1036
1009
|
|
1037
1010
|
|
1038
1011
|
</div>
|
@@ -1066,10 +1039,9 @@ the valueaxis
|
|
1066
1039
|
<td>
|
1067
1040
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/bar_3D_chart.rb', line 16</span>
|
1068
1041
|
|
1069
|
-
<span class='
|
1070
|
-
<span class='
|
1071
|
-
<span class='
|
1072
|
-
</pre>
|
1042
|
+
<span class='kw'>def</span> <span class='id valAxis'>valAxis</span>
|
1043
|
+
<span class='ivar'>@valAxis</span>
|
1044
|
+
<span class='kw'>end</span></pre>
|
1073
1045
|
</td>
|
1074
1046
|
</tr>
|
1075
1047
|
</table>
|
@@ -1091,9 +1063,8 @@ the valueaxis
|
|
1091
1063
|
|
1092
1064
|
</p><div class="docstring">
|
1093
1065
|
<div class="discussion">
|
1094
|
-
|
1095
|
-
Serializes the bar chart
|
1096
|
-
</p>
|
1066
|
+
|
1067
|
+
<p>Serializes the bar chart</p>
|
1097
1068
|
|
1098
1069
|
|
1099
1070
|
</div>
|
@@ -1120,14 +1091,6 @@ Serializes the bar chart
|
|
1120
1091
|
<pre class="lines">
|
1121
1092
|
|
1122
1093
|
|
1123
|
-
101
|
1124
|
-
102
|
1125
|
-
103
|
1126
|
-
104
|
1127
|
-
105
|
1128
|
-
106
|
1129
|
-
107
|
1130
|
-
108
|
1131
1094
|
109
|
1132
1095
|
110
|
1133
1096
|
111
|
@@ -1137,30 +1100,37 @@ Serializes the bar chart
|
|
1137
1100
|
115
|
1138
1101
|
116
|
1139
1102
|
117
|
1140
|
-
118
|
1103
|
+
118
|
1104
|
+
119
|
1105
|
+
120
|
1106
|
+
121
|
1107
|
+
122
|
1108
|
+
123
|
1109
|
+
124
|
1110
|
+
125
|
1111
|
+
126</pre>
|
1141
1112
|
</td>
|
1142
1113
|
<td>
|
1143
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/bar_3D_chart.rb', line
|
1144
|
-
|
1145
|
-
<span class='
|
1146
|
-
<span class='
|
1147
|
-
<span class='xml
|
1148
|
-
<span class='xml
|
1149
|
-
<span class='xml
|
1150
|
-
<span class='xml
|
1151
|
-
<span class='
|
1152
|
-
<span class='xml
|
1153
|
-
<span class='xml
|
1154
|
-
<span class='xml
|
1155
|
-
<span class='xml
|
1156
|
-
<span class='xml
|
1157
|
-
<span class='xml
|
1158
|
-
<span class='rbrace
|
1159
|
-
<span class='
|
1160
|
-
<span class='
|
1161
|
-
<span class='
|
1162
|
-
<span class='
|
1163
|
-
</pre>
|
1114
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/bar_3D_chart.rb', line 109</span>
|
1115
|
+
|
1116
|
+
<span class='kw'>def</span> <span class='id to_xml'>to_xml</span>
|
1117
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id xml'>xml</span><span class='op'>|</span>
|
1118
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c:bar3DChart</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
1119
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c:barDir</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:val</span> <span class='op'>=></span> <span class='id barDir'>barDir</span><span class='rparen'>)</span>
|
1120
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c:grouping</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:val</span><span class='op'>=></span><span class='id grouping'>grouping</span><span class='rparen'>)</span>
|
1121
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c:varyColors</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:val</span><span class='op'>=></span><span class='int'>1</span><span class='rparen'>)</span>
|
1122
|
+
<span class='ivar'>@series</span><span class='period'>.</span><span class='id each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id ser'>ser</span><span class='op'>|</span> <span class='id ser'>ser</span><span class='period'>.</span><span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
1123
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c:gapWidth</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:val</span><span class='op'>=></span><span class='ivar'>@gapWidth</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@gapWidth</span><span class='period'>.</span><span class='id nil?'>nil?</span>
|
1124
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c:gapDepth</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:val</span><span class='op'>=></span><span class='ivar'>@gapDepth</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@gapDepth</span><span class='period'>.</span><span class='id nil?'>nil?</span>
|
1125
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c:shape</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:val</span><span class='op'>=></span><span class='ivar'>@shape</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@shape</span><span class='period'>.</span><span class='id nil?'>nil?</span>
|
1126
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c:axId</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:val</span><span class='op'>=></span><span class='ivar'>@catAxId</span><span class='rparen'>)</span>
|
1127
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c:axId</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:val</span><span class='op'>=></span><span class='ivar'>@valAxId</span><span class='rparen'>)</span>
|
1128
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c:axId</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:val</span><span class='op'>=></span><span class='int'>0</span><span class='rparen'>)</span>
|
1129
|
+
<span class='rbrace'>}</span>
|
1130
|
+
<span class='ivar'>@catAxis</span><span class='period'>.</span><span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span>
|
1131
|
+
<span class='ivar'>@valAxis</span><span class='period'>.</span><span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span>
|
1132
|
+
<span class='kw'>end</span>
|
1133
|
+
<span class='kw'>end</span></pre>
|
1164
1134
|
</td>
|
1165
1135
|
</tr>
|
1166
1136
|
</table>
|
@@ -1171,9 +1141,9 @@ Serializes the bar chart
|
|
1171
1141
|
</div>
|
1172
1142
|
|
1173
1143
|
<div id="footer">
|
1174
|
-
Generated on
|
1144
|
+
Generated on Sat Nov 26 13:16:38 2011 by
|
1175
1145
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1176
|
-
0.7.3 (ruby-1.
|
1146
|
+
0.7.3 (ruby-1.9.3).
|
1177
1147
|
</div>
|
1178
1148
|
|
1179
1149
|
</body>
|