axlsx 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/GraphicFrame.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Axlsx::GraphicFrame
|
|
8
8
|
|
|
9
|
-
—
|
|
9
|
+
— AXLSX
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -97,15 +97,13 @@
|
|
|
97
97
|
|
|
98
98
|
<div class="note notetag">
|
|
99
99
|
<strong>Note:</strong>
|
|
100
|
-
<div class='inline'
|
|
101
|
-
The recommended way to manage charts is Worksheet#add_chart
|
|
102
|
-
</p>
|
|
100
|
+
<div class='inline'>
|
|
101
|
+
<p>The recommended way to manage charts is Worksheet#add_chart</p>
|
|
103
102
|
</div>
|
|
104
103
|
</div>
|
|
105
104
|
|
|
106
|
-
|
|
107
|
-
A graphic frame defines a container for a chart object
|
|
108
|
-
</p>
|
|
105
|
+
|
|
106
|
+
<p>A graphic frame defines a container for a chart object</p>
|
|
109
107
|
|
|
110
108
|
|
|
111
109
|
</div>
|
|
@@ -144,9 +142,8 @@ A graphic frame defines a container for a chart object
|
|
|
144
142
|
|
|
145
143
|
|
|
146
144
|
|
|
147
|
-
<span class="summary_desc"><div class='inline'
|
|
148
|
-
A anchor that holds this frame
|
|
149
|
-
</p>
|
|
145
|
+
<span class="summary_desc"><div class='inline'>
|
|
146
|
+
<p>A anchor that holds this frame.</p>
|
|
150
147
|
</div></span>
|
|
151
148
|
|
|
152
149
|
</li>
|
|
@@ -171,26 +168,37 @@ A anchor that holds this frame.
|
|
|
171
168
|
|
|
172
169
|
|
|
173
170
|
|
|
174
|
-
<span class="summary_desc"><div class='inline'
|
|
175
|
-
A reference to the chart object associated with this frame
|
|
176
|
-
</p>
|
|
171
|
+
<span class="summary_desc"><div class='inline'>
|
|
172
|
+
<p>A reference to the chart object associated with this frame.</p>
|
|
177
173
|
</div></span>
|
|
178
174
|
|
|
179
175
|
</li>
|
|
180
176
|
|
|
181
177
|
|
|
182
|
-
|
|
178
|
+
</ul>
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
<h2>
|
|
185
|
+
Instance Method Summary
|
|
186
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
187
|
+
</h2>
|
|
188
|
+
|
|
189
|
+
<ul class="summary">
|
|
190
|
+
|
|
191
|
+
<li class="public ">
|
|
183
192
|
<span class="summary_signature">
|
|
184
193
|
|
|
185
|
-
<a href="#
|
|
194
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (GraphicFrame) <strong>initialize</strong>(anchor, chart_type, options) </a>
|
|
186
195
|
|
|
187
196
|
|
|
188
197
|
|
|
189
198
|
</span>
|
|
190
199
|
|
|
200
|
+
<span class="note title constructor">constructor</span>
|
|
191
201
|
|
|
192
|
-
<span class="note title readonly">readonly</span>
|
|
193
|
-
|
|
194
202
|
|
|
195
203
|
|
|
196
204
|
|
|
@@ -198,38 +206,22 @@ A reference to the chart object associated with this frame.
|
|
|
198
206
|
|
|
199
207
|
|
|
200
208
|
|
|
201
|
-
<span class="summary_desc"><div class='inline'
|
|
202
|
-
|
|
203
|
-
</p>
|
|
209
|
+
<span class="summary_desc"><div class='inline'>
|
|
210
|
+
<p>Creates a new GraphicFrame object.</p>
|
|
204
211
|
</div></span>
|
|
205
212
|
|
|
206
213
|
</li>
|
|
207
214
|
|
|
208
|
-
|
|
209
|
-
</ul>
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
<h2>
|
|
216
|
-
Instance Method Summary
|
|
217
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
218
|
-
</h2>
|
|
219
|
-
|
|
220
|
-
<ul class="summary">
|
|
221
215
|
|
|
222
216
|
<li class="public ">
|
|
223
217
|
<span class="summary_signature">
|
|
224
218
|
|
|
225
|
-
<a href="#
|
|
219
|
+
<a href="#rId-instance_method" title="#rId (instance method)">- (String) <strong>rId</strong> </a>
|
|
226
220
|
|
|
227
221
|
|
|
228
222
|
|
|
229
223
|
</span>
|
|
230
224
|
|
|
231
|
-
<span class="note title constructor">constructor</span>
|
|
232
|
-
|
|
233
225
|
|
|
234
226
|
|
|
235
227
|
|
|
@@ -237,9 +229,8 @@ The relationship id for this graphic.
|
|
|
237
229
|
|
|
238
230
|
|
|
239
231
|
|
|
240
|
-
<span class="summary_desc"><div class='inline'
|
|
241
|
-
|
|
242
|
-
</p>
|
|
232
|
+
<span class="summary_desc"><div class='inline'>
|
|
233
|
+
<p>The relationship id for this graphic.</p>
|
|
243
234
|
</div></span>
|
|
244
235
|
|
|
245
236
|
</li>
|
|
@@ -261,9 +252,8 @@ Creates a new GraphicFrame object.
|
|
|
261
252
|
|
|
262
253
|
|
|
263
254
|
|
|
264
|
-
<span class="summary_desc"><div class='inline'
|
|
265
|
-
Serializes the graphic frame
|
|
266
|
-
</p>
|
|
255
|
+
<span class="summary_desc"><div class='inline'>
|
|
256
|
+
<p>Serializes the graphic frame.</p>
|
|
267
257
|
</div></span>
|
|
268
258
|
|
|
269
259
|
</li>
|
|
@@ -284,9 +274,8 @@ Serializes the graphic frame.
|
|
|
284
274
|
|
|
285
275
|
</p><div class="docstring">
|
|
286
276
|
<div class="discussion">
|
|
287
|
-
|
|
288
|
-
Creates a new GraphicFrame object
|
|
289
|
-
</p>
|
|
277
|
+
|
|
278
|
+
<p>Creates a new GraphicFrame object</p>
|
|
290
279
|
|
|
291
280
|
|
|
292
281
|
</div>
|
|
@@ -326,21 +315,20 @@ Creates a new GraphicFrame object
|
|
|
326
315
|
<pre class="lines">
|
|
327
316
|
|
|
328
317
|
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
318
|
+
18
|
|
319
|
+
19
|
|
320
|
+
20
|
|
321
|
+
21
|
|
322
|
+
22</pre>
|
|
334
323
|
</td>
|
|
335
324
|
<td>
|
|
336
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line
|
|
337
|
-
|
|
338
|
-
<span class='
|
|
339
|
-
<span class='
|
|
340
|
-
<span class='
|
|
341
|
-
<span class='
|
|
342
|
-
<span class='
|
|
343
|
-
</pre>
|
|
325
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line 18</span>
|
|
326
|
+
|
|
327
|
+
<span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id anchor'>anchor</span><span class='comma'>,</span> <span class='id chart_type'>chart_type</span><span class='comma'>,</span> <span class='id options'>options</span><span class='rparen'>)</span>
|
|
328
|
+
<span class='const'>DataTypeValidator</span><span class='period'>.</span><span class='id validate'>validate</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Drawing.chart_type</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='const'>Chart</span><span class='comma'>,</span> <span class='id chart_type'>chart_type</span>
|
|
329
|
+
<span class='ivar'>@anchor</span> <span class='op'>=</span> <span class='id anchor'>anchor</span>
|
|
330
|
+
<span class='ivar'>@chart</span> <span class='op'>=</span> <span class='id chart_type'>chart_type</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id options'>options</span><span class='rparen'>)</span>
|
|
331
|
+
<span class='kw'>end</span></pre>
|
|
344
332
|
</td>
|
|
345
333
|
</tr>
|
|
346
334
|
</table>
|
|
@@ -363,9 +351,8 @@ Creates a new GraphicFrame object
|
|
|
363
351
|
|
|
364
352
|
</p><div class="docstring">
|
|
365
353
|
<div class="discussion">
|
|
366
|
-
|
|
367
|
-
A anchor that holds this frame
|
|
368
|
-
</p>
|
|
354
|
+
|
|
355
|
+
<p>A anchor that holds this frame</p>
|
|
369
356
|
|
|
370
357
|
|
|
371
358
|
</div>
|
|
@@ -399,10 +386,9 @@ A anchor that holds this frame
|
|
|
399
386
|
<td>
|
|
400
387
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line 13</span>
|
|
401
388
|
|
|
402
|
-
<span class='
|
|
403
|
-
<span class='
|
|
404
|
-
<span class='
|
|
405
|
-
</pre>
|
|
389
|
+
<span class='kw'>def</span> <span class='id anchor'>anchor</span>
|
|
390
|
+
<span class='ivar'>@anchor</span>
|
|
391
|
+
<span class='kw'>end</span></pre>
|
|
406
392
|
</td>
|
|
407
393
|
</tr>
|
|
408
394
|
</table>
|
|
@@ -420,9 +406,8 @@ A anchor that holds this frame
|
|
|
420
406
|
|
|
421
407
|
</p><div class="docstring">
|
|
422
408
|
<div class="discussion">
|
|
423
|
-
|
|
424
|
-
A reference to the chart object associated with this frame
|
|
425
|
-
</p>
|
|
409
|
+
|
|
410
|
+
<p>A reference to the chart object associated with this frame</p>
|
|
426
411
|
|
|
427
412
|
|
|
428
413
|
</div>
|
|
@@ -456,30 +441,32 @@ A reference to the chart object associated with this frame
|
|
|
456
441
|
<td>
|
|
457
442
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line 9</span>
|
|
458
443
|
|
|
459
|
-
<span class='
|
|
460
|
-
<span class='
|
|
461
|
-
<span class='
|
|
462
|
-
</pre>
|
|
444
|
+
<span class='kw'>def</span> <span class='id chart'>chart</span>
|
|
445
|
+
<span class='ivar'>@chart</span>
|
|
446
|
+
<span class='kw'>end</span></pre>
|
|
463
447
|
</td>
|
|
464
448
|
</tr>
|
|
465
449
|
</table>
|
|
466
450
|
</div>
|
|
467
451
|
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
452
|
+
</div>
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
<div id="instance_method_details" class="method_details_list">
|
|
456
|
+
<h2>Instance Method Details</h2>
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
<div class="method_details first">
|
|
460
|
+
<p class="signature first" id="rId-instance_method">
|
|
473
461
|
|
|
474
|
-
- (<tt>String</tt>) <strong>rId</strong>
|
|
462
|
+
- (<tt>String</tt>) <strong>rId</strong>
|
|
475
463
|
|
|
476
464
|
|
|
477
465
|
|
|
478
466
|
</p><div class="docstring">
|
|
479
467
|
<div class="discussion">
|
|
480
|
-
|
|
481
|
-
The relationship id for this graphic
|
|
482
|
-
</p>
|
|
468
|
+
|
|
469
|
+
<p>The relationship id for this graphic</p>
|
|
483
470
|
|
|
484
471
|
|
|
485
472
|
</div>
|
|
@@ -506,31 +493,23 @@ The relationship id for this graphic
|
|
|
506
493
|
<pre class="lines">
|
|
507
494
|
|
|
508
495
|
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
496
|
+
26
|
|
497
|
+
27
|
|
498
|
+
28</pre>
|
|
512
499
|
</td>
|
|
513
500
|
<td>
|
|
514
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line
|
|
501
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line 26</span>
|
|
515
502
|
|
|
516
|
-
<span class='
|
|
517
|
-
<span class='
|
|
518
|
-
<span class='
|
|
519
|
-
</pre>
|
|
503
|
+
<span class='kw'>def</span> <span class='id rId'>rId</span>
|
|
504
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>rId</span><span class='embexpr_beg'>#{</span><span class='ivar'>@anchor</span><span class='period'>.</span><span class='id index'>index</span><span class='op'>+</span><span class='int'>1</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
|
505
|
+
<span class='kw'>end</span></pre>
|
|
520
506
|
</td>
|
|
521
507
|
</tr>
|
|
522
508
|
</table>
|
|
523
509
|
</div>
|
|
524
510
|
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
<div id="instance_method_details" class="method_details_list">
|
|
529
|
-
<h2>Instance Method Details</h2>
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
<div class="method_details first">
|
|
533
|
-
<p class="signature first" id="to_xml-instance_method">
|
|
511
|
+
<div class="method_details ">
|
|
512
|
+
<p class="signature " id="to_xml-instance_method">
|
|
534
513
|
|
|
535
514
|
- (<tt>String</tt>) <strong>to_xml</strong>(xml)
|
|
536
515
|
|
|
@@ -538,9 +517,8 @@ The relationship id for this graphic
|
|
|
538
517
|
|
|
539
518
|
</p><div class="docstring">
|
|
540
519
|
<div class="discussion">
|
|
541
|
-
|
|
542
|
-
Serializes the graphic frame
|
|
543
|
-
</p>
|
|
520
|
+
|
|
521
|
+
<p>Serializes the graphic frame</p>
|
|
544
522
|
|
|
545
523
|
|
|
546
524
|
</div>
|
|
@@ -559,9 +537,8 @@ Serializes the graphic frame
|
|
|
559
537
|
|
|
560
538
|
|
|
561
539
|
—
|
|
562
|
-
<div class='inline'
|
|
563
|
-
The document builder instance this objects xml will be added to
|
|
564
|
-
</p>
|
|
540
|
+
<div class='inline'>
|
|
541
|
+
<p>The document builder instance this objects xml will be added to.</p>
|
|
565
542
|
</div>
|
|
566
543
|
|
|
567
544
|
</li>
|
|
@@ -588,6 +565,8 @@ The document builder instance this objects xml will be added to.
|
|
|
588
565
|
<pre class="lines">
|
|
589
566
|
|
|
590
567
|
|
|
568
|
+
33
|
|
569
|
+
34
|
|
591
570
|
35
|
|
592
571
|
36
|
|
593
572
|
37
|
|
@@ -603,32 +582,29 @@ The document builder instance this objects xml will be added to.
|
|
|
603
582
|
47
|
|
604
583
|
48
|
|
605
584
|
49
|
|
606
|
-
50
|
|
607
|
-
51
|
|
608
|
-
52</pre>
|
|
585
|
+
50</pre>
|
|
609
586
|
</td>
|
|
610
587
|
<td>
|
|
611
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line
|
|
612
|
-
|
|
613
|
-
<span class='
|
|
614
|
-
<span class='xml
|
|
615
|
-
<span class='xml
|
|
616
|
-
<span class='xml
|
|
617
|
-
<span class='xml
|
|
618
|
-
<span class='rbrace
|
|
619
|
-
<span class='xml
|
|
620
|
-
<span class='xml
|
|
621
|
-
<span class='xml
|
|
622
|
-
<span class='rbrace
|
|
623
|
-
<span class='xml
|
|
624
|
-
<span class='xml
|
|
625
|
-
<span class='xml
|
|
626
|
-
<span class='rbrace
|
|
627
|
-
<span class='rbrace
|
|
628
|
-
<span class='rbrace
|
|
629
|
-
|
|
630
|
-
<span class='
|
|
631
|
-
</pre>
|
|
588
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/graphic_frame.rb', line 33</span>
|
|
589
|
+
|
|
590
|
+
<span class='kw'>def</span> <span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span>
|
|
591
|
+
<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'>xdr:graphicFrame</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
592
|
+
<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'>xdr:nvGraphicFramePr</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
593
|
+
<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'>xdr:cNvPr</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:id</span><span class='op'>=></span><span class='int'>2</span><span class='comma'>,</span> <span class='symbol'>:name</span><span class='op'>=></span><span class='id chart'>chart</span><span class='period'>.</span><span class='id title'>title</span><span class='rparen'>)</span>
|
|
594
|
+
<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'>xdr:cNvGraphicFramePr</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
595
|
+
<span class='rbrace'>}</span>
|
|
596
|
+
<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'>xdr:xfrm</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
597
|
+
<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'>a:off</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:x</span><span class='op'>=></span><span class='int'>0</span><span class='comma'>,</span> <span class='symbol'>:y</span><span class='op'>=></span><span class='int'>0</span><span class='rparen'>)</span>
|
|
598
|
+
<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'>a:ext</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:cx</span><span class='op'>=></span><span class='int'>0</span><span class='comma'>,</span> <span class='symbol'>:cy</span><span class='op'>=></span><span class='int'>0</span><span class='rparen'>)</span>
|
|
599
|
+
<span class='rbrace'>}</span>
|
|
600
|
+
<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'>a:graphic</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
601
|
+
<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'>a:graphicData</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:uri</span><span class='op'>=></span><span class='const'>XML_NS_C</span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
602
|
+
<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:chart</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:xmlns:c</span><span class='tstring_end'>'</span></span><span class='op'>=></span><span class='const'>XML_NS_C</span><span class='comma'>,</span> <span class='symbol'>:xmlns:r</span><span class='tstring_end'>'</span></span><span class='op'>=></span><span class='const'>XML_NS_R</span><span class='comma'>,</span> <span class='symbol'>:r:id</span><span class='tstring_end'>'</span></span><span class='op'>=></span><span class='id rId'>rId</span><span class='rparen'>)</span>
|
|
603
|
+
<span class='rbrace'>}</span>
|
|
604
|
+
<span class='rbrace'>}</span>
|
|
605
|
+
<span class='rbrace'>}</span>
|
|
606
|
+
|
|
607
|
+
<span class='kw'>end</span></pre>
|
|
632
608
|
</td>
|
|
633
609
|
</tr>
|
|
634
610
|
</table>
|
|
@@ -639,9 +615,9 @@ The document builder instance this objects xml will be added to.
|
|
|
639
615
|
</div>
|
|
640
616
|
|
|
641
617
|
<div id="footer">
|
|
642
|
-
Generated on
|
|
618
|
+
Generated on Sat Nov 26 13:16:38 2011 by
|
|
643
619
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
644
|
-
0.7.3 (ruby-1.
|
|
620
|
+
0.7.3 (ruby-1.9.3).
|
|
645
621
|
</div>
|
|
646
622
|
|
|
647
623
|
</body>
|
data/doc/Axlsx/Line3DChart.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Axlsx::Line3DChart
|
|
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 Line3DChart is a three dimentional line chart (who would have guessed?)
|
|
101
|
-
that you can add to your worksheet
|
|
102
|
-
</p>
|
|
99
|
+
|
|
100
|
+
<p>The Line3DChart is a three dimentional line chart (who would have guessed?)
|
|
101
|
+
that you can add to your worksheet.</p>
|
|
103
102
|
|
|
104
103
|
|
|
105
104
|
</div>
|
|
@@ -109,21 +108,19 @@ that you can add to your worksheet.
|
|
|
109
108
|
<div class="examples">
|
|
110
109
|
<h3>Examples:</h3>
|
|
111
110
|
|
|
112
|
-
<h4><div class='inline'
|
|
113
|
-
Creating a chart
|
|
114
|
-
</p>
|
|
111
|
+
<h4><div class='inline'>
|
|
112
|
+
<p>Creating a chart</p>
|
|
115
113
|
</div></h4>
|
|
116
|
-
<pre class="example code"><span class='comment
|
|
117
|
-
|
|
118
|
-
|
|
114
|
+
<pre class="example code"><span class='comment'># This example creates a line in a single sheet.
|
|
115
|
+
</span><span class='id require'>require</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>rubygems</span><span class='tstring_end'>"</span></span> <span class='comment'># if that is your preferred way to manage gems!
|
|
116
|
+
</span><span class='id require'>require</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>axlsx</span><span class='tstring_end'>"</span></span>
|
|
119
117
|
|
|
120
|
-
<span class='p
|
|
121
|
-
<span class='ws
|
|
122
|
-
<span class='ws
|
|
118
|
+
<span class='id p'>p</span> <span class='op'>=</span> <span class='const'>Axlsx</span><span class='op'>::</span><span class='const'>Package</span><span class='period'>.</span><span class='id new'>new</span>
|
|
119
|
+
<span class='id ws'>ws</span> <span class='op'>=</span> <span class='id p'>p</span><span class='period'>.</span><span class='id workbook'>workbook</span><span class='period'>.</span><span class='id add_worksheet'>add_worksheet</span>
|
|
120
|
+
<span class='id ws'>ws</span><span class='period'>.</span><span class='id add_row'>add_row</span> <span class='symbol'>:values</span> <span class='op'>=></span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>This is a chart with no data in the sheet</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span>
|
|
123
121
|
|
|
124
|
-
<span class='chart
|
|
125
|
-
<span class='chart
|
|
126
|
-
</pre>
|
|
122
|
+
<span class='id chart'>chart</span> <span class='op'>=</span> <span class='id ws'>ws</span><span class='period'>.</span><span class='id add_chart'>add_chart</span><span class='lparen'>(</span><span class='const'>Axlsx</span><span class='op'>::</span><span class='const'>Line3DChart</span><span class='comma'>,</span> <span class='symbol'>:start_at</span><span class='op'>=></span> <span class='lbracket'>[</span><span class='int'>0</span><span class='comma'>,</span><span class='int'>1</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='symbol'>:end_at</span><span class='op'>=></span><span class='lbracket'>[</span><span class='int'>0</span><span class='comma'>,</span><span class='int'>6</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='symbol'>:title</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Most Popular Pets</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
123
|
+
<span class='id chart'>chart</span><span class='period'>.</span><span class='id add_series'>add_series</span> <span class='symbol'>:data</span> <span class='op'>=></span> <span class='lbracket'>[</span><span class='int'>1</span><span class='comma'>,</span> <span class='int'>9</span><span class='comma'>,</span> <span class='int'>10</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='symbol'>:labels</span> <span class='op'>=></span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Slimy Reptiles</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Fuzzy Bunnies</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Rottweiler</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span></pre>
|
|
127
124
|
|
|
128
125
|
</div>
|
|
129
126
|
|
|
@@ -151,9 +148,8 @@ Creating a chart
|
|
|
151
148
|
<dt id="GAP_AMOUNT_PERCENT-constant" class="">GAP_AMOUNT_PERCENT =
|
|
152
149
|
<div class="docstring">
|
|
153
150
|
<div class="discussion">
|
|
154
|
-
|
|
155
|
-
validation regex for gap amount percent
|
|
156
|
-
</p>
|
|
151
|
+
|
|
152
|
+
<p>validation regex for gap amount percent</p>
|
|
157
153
|
|
|
158
154
|
|
|
159
155
|
</div>
|
|
@@ -163,8 +159,7 @@ validation regex for gap amount percent
|
|
|
163
159
|
|
|
164
160
|
</div>
|
|
165
161
|
</dt>
|
|
166
|
-
<dd><pre class="code"><span class='
|
|
167
|
-
</pre></dd>
|
|
162
|
+
<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>
|
|
168
163
|
|
|
169
164
|
</dl>
|
|
170
165
|
|
|
@@ -196,9 +191,8 @@ validation regex for gap amount percent
|
|
|
196
191
|
|
|
197
192
|
|
|
198
193
|
|
|
199
|
-
<span class="summary_desc"><div class='inline'
|
|
200
|
-
the category axis
|
|
201
|
-
</p>
|
|
194
|
+
<span class="summary_desc"><div class='inline'>
|
|
195
|
+
<p>the category axis.</p>
|
|
202
196
|
</div></span>
|
|
203
197
|
|
|
204
198
|
</li>
|
|
@@ -223,10 +217,9 @@ the category axis.
|
|
|
223
217
|
|
|
224
218
|
|
|
225
219
|
|
|
226
|
-
<span class="summary_desc"><div class='inline'
|
|
227
|
-
space between bar or column clusters, as a percentage of the bar or column
|
|
228
|
-
width
|
|
229
|
-
</p>
|
|
220
|
+
<span class="summary_desc"><div class='inline'>
|
|
221
|
+
<p>space between bar or column clusters, as a percentage of the bar or column
|
|
222
|
+
width.</p>
|
|
230
223
|
</div></span>
|
|
231
224
|
|
|
232
225
|
</li>
|
|
@@ -251,9 +244,8 @@ width.
|
|
|
251
244
|
|
|
252
245
|
|
|
253
246
|
|
|
254
|
-
<span class="summary_desc"><div class='inline'
|
|
255
|
-
grouping for a column, line, or area chart
|
|
256
|
-
</p>
|
|
247
|
+
<span class="summary_desc"><div class='inline'>
|
|
248
|
+
<p>grouping for a column, line, or area chart.</p>
|
|
257
249
|
</div></span>
|
|
258
250
|
|
|
259
251
|
</li>
|
|
@@ -278,9 +270,8 @@ grouping for a column, line, or area chart.
|
|
|
278
270
|
|
|
279
271
|
|
|
280
272
|
|
|
281
|
-
<span class="summary_desc"><div class='inline'
|
|
282
|
-
the category axis
|
|
283
|
-
</p>
|
|
273
|
+
<span class="summary_desc"><div class='inline'>
|
|
274
|
+
<p>the category axis.</p>
|
|
284
275
|
</div></span>
|
|
285
276
|
|
|
286
277
|
</li>
|
|
@@ -305,9 +296,8 @@ the category axis.
|
|
|
305
296
|
|
|
306
297
|
|
|
307
298
|
|
|
308
|
-
<span class="summary_desc"><div class='inline'
|
|
309
|
-
the category axis
|
|
310
|
-
</p>
|
|
299
|
+
<span class="summary_desc"><div class='inline'>
|
|
300
|
+
<p>the category axis.</p>
|
|
311
301
|
</div></span>
|
|
312
302
|
|
|
313
303
|
</li>
|
|
@@ -323,7 +313,7 @@ the category axis.
|
|
|
323
313
|
|
|
324
314
|
|
|
325
315
|
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Chart.html" title="Axlsx::Chart (class)">Chart</a></span></h3>
|
|
326
|
-
<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#
|
|
316
|
+
<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>
|
|
327
317
|
|
|
328
318
|
|
|
329
319
|
|
|
@@ -352,9 +342,8 @@ the category axis.
|
|
|
352
342
|
|
|
353
343
|
|
|
354
344
|
|
|
355
|
-
<span class="summary_desc"><div class='inline'
|
|
356
|
-
Creates a new line chart object
|
|
357
|
-
</p>
|
|
345
|
+
<span class="summary_desc"><div class='inline'>
|
|
346
|
+
<p>Creates a new line chart object.</p>
|
|
358
347
|
</div></span>
|
|
359
348
|
|
|
360
349
|
</li>
|
|
@@ -376,9 +365,8 @@ Creates a new line chart object.
|
|
|
376
365
|
|
|
377
366
|
|
|
378
367
|
|
|
379
|
-
<span class="summary_desc"><div class='inline'
|
|
380
|
-
Serializes the bar chart
|
|
381
|
-
</p>
|
|
368
|
+
<span class="summary_desc"><div class='inline'>
|
|
369
|
+
<p>Serializes the bar chart.</p>
|
|
382
370
|
</div></span>
|
|
383
371
|
|
|
384
372
|
</li>
|
|
@@ -396,7 +384,7 @@ Serializes the bar chart.
|
|
|
396
384
|
|
|
397
385
|
|
|
398
386
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Chart.html" title="Axlsx::Chart (class)">Chart</a></span></h3>
|
|
399
|
-
<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>
|
|
387
|
+
<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>
|
|
400
388
|
<div id="constructor_details" class="method_details_list">
|
|
401
389
|
<h2>Constructor Details</h2>
|
|
402
390
|
|
|
@@ -409,9 +397,8 @@ Serializes the bar chart.
|
|
|
409
397
|
|
|
410
398
|
</p><div class="docstring">
|
|
411
399
|
<div class="discussion">
|
|
412
|
-
|
|
413
|
-
Creates a new line chart object
|
|
414
|
-
</p>
|
|
400
|
+
|
|
401
|
+
<p>Creates a new line chart object</p>
|
|
415
402
|
|
|
416
403
|
|
|
417
404
|
</div>
|
|
@@ -430,9 +417,8 @@ Creates a new line chart object
|
|
|
430
417
|
|
|
431
418
|
|
|
432
419
|
—
|
|
433
|
-
<div class='inline'
|
|
434
|
-
The workbook that owns this chart
|
|
435
|
-
</p>
|
|
420
|
+
<div class='inline'>
|
|
421
|
+
<p>The workbook that owns this chart.</p>
|
|
436
422
|
</div>
|
|
437
423
|
|
|
438
424
|
</li>
|
|
@@ -449,9 +435,8 @@ The workbook that owns this chart.
|
|
|
449
435
|
|
|
450
436
|
|
|
451
437
|
—
|
|
452
|
-
<div class='inline'
|
|
453
|
-
a customizable set of options
|
|
454
|
-
</p>
|
|
438
|
+
<div class='inline'>
|
|
439
|
+
<p>a customizable set of options</p>
|
|
455
440
|
</div>
|
|
456
441
|
|
|
457
442
|
</li>
|
|
@@ -586,24 +571,25 @@ a customizable set of options
|
|
|
586
571
|
69
|
|
587
572
|
70
|
|
588
573
|
71
|
|
589
|
-
72
|
|
574
|
+
72
|
|
575
|
+
73</pre>
|
|
590
576
|
</td>
|
|
591
577
|
<td>
|
|
592
578
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/line_3D_chart.rb', line 61</span>
|
|
593
579
|
|
|
594
|
-
<span class='
|
|
595
|
-
<span class='
|
|
596
|
-
<span class='
|
|
597
|
-
<span class='
|
|
598
|
-
<span class='
|
|
599
|
-
<span class='
|
|
600
|
-
<span class='
|
|
601
|
-
<span class='
|
|
602
|
-
<span class='
|
|
603
|
-
<span class='
|
|
604
|
-
<span class='
|
|
605
|
-
<span class='
|
|
606
|
-
</pre>
|
|
580
|
+
<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>
|
|
581
|
+
<span class='ivar'>@gapDepth</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
|
582
|
+
<span class='ivar'>@grouping</span> <span class='op'>=</span> <span class='symbol'>:standard</span>
|
|
583
|
+
<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>
|
|
584
|
+
<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>
|
|
585
|
+
<span class='ivar'>@serAxId</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>
|
|
586
|
+
<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>
|
|
587
|
+
<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>
|
|
588
|
+
<span class='ivar'>@serAxis</span> <span class='op'>=</span> <span class='const'>SerAxis</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='ivar'>@serAxId</span><span class='comma'>,</span> <span class='ivar'>@valAxId</span><span class='rparen'>)</span>
|
|
589
|
+
<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>
|
|
590
|
+
<span class='ivar'>@series_type</span> <span class='op'>=</span> <span class='const'>LineSeries</span>
|
|
591
|
+
<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'>:perspective</span><span class='op'>=></span><span class='int'>30</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>
|
|
592
|
+
<span class='kw'>end</span></pre>
|
|
607
593
|
</td>
|
|
608
594
|
</tr>
|
|
609
595
|
</table>
|
|
@@ -626,9 +612,8 @@ a customizable set of options
|
|
|
626
612
|
|
|
627
613
|
</p><div class="docstring">
|
|
628
614
|
<div class="discussion">
|
|
629
|
-
|
|
630
|
-
the category axis
|
|
631
|
-
</p>
|
|
615
|
+
|
|
616
|
+
<p>the category axis</p>
|
|
632
617
|
|
|
633
618
|
|
|
634
619
|
</div>
|
|
@@ -662,10 +647,9 @@ the category axis
|
|
|
662
647
|
<td>
|
|
663
648
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/line_3D_chart.rb', line 25</span>
|
|
664
649
|
|
|
665
|
-
<span class='
|
|
666
|
-
<span class='
|
|
667
|
-
<span class='
|
|
668
|
-
</pre>
|
|
650
|
+
<span class='kw'>def</span> <span class='id catAxis'>catAxis</span>
|
|
651
|
+
<span class='ivar'>@catAxis</span>
|
|
652
|
+
<span class='kw'>end</span></pre>
|
|
669
653
|
</td>
|
|
670
654
|
</tr>
|
|
671
655
|
</table>
|
|
@@ -683,10 +667,9 @@ the category axis
|
|
|
683
667
|
|
|
684
668
|
</p><div class="docstring">
|
|
685
669
|
<div class="discussion">
|
|
686
|
-
|
|
687
|
-
space between bar or column clusters, as a percentage of the bar or column
|
|
688
|
-
width
|
|
689
|
-
</p>
|
|
670
|
+
|
|
671
|
+
<p>space between bar or column clusters, as a percentage of the bar or column
|
|
672
|
+
width.</p>
|
|
690
673
|
|
|
691
674
|
|
|
692
675
|
</div>
|
|
@@ -720,10 +703,9 @@ width.
|
|
|
720
703
|
<td>
|
|
721
704
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/line_3D_chart.rb', line 37</span>
|
|
722
705
|
|
|
723
|
-
<span class='
|
|
724
|
-
<span class='
|
|
725
|
-
<span class='
|
|
726
|
-
</pre>
|
|
706
|
+
<span class='kw'>def</span> <span class='id gapDepth'>gapDepth</span>
|
|
707
|
+
<span class='ivar'>@gapDepth</span>
|
|
708
|
+
<span class='kw'>end</span></pre>
|
|
727
709
|
</td>
|
|
728
710
|
</tr>
|
|
729
711
|
</table>
|
|
@@ -741,10 +723,9 @@ width.
|
|
|
741
723
|
|
|
742
724
|
</p><div class="docstring">
|
|
743
725
|
<div class="discussion">
|
|
744
|
-
|
|
745
|
-
grouping for a column, line, or area chart. must be one of
|
|
746
|
-
[:percentStacked, :clustered, :standard, :stacked]
|
|
747
|
-
</p>
|
|
726
|
+
|
|
727
|
+
<p>grouping for a column, line, or area chart. must be one of
|
|
728
|
+
[:percentStacked, :clustered, :standard, :stacked]</p>
|
|
748
729
|
|
|
749
730
|
|
|
750
731
|
</div>
|
|
@@ -778,10 +759,9 @@ grouping for a column, line, or area chart. must be one of
|
|
|
778
759
|
<td>
|
|
779
760
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/line_3D_chart.rb', line 42</span>
|
|
780
761
|
|
|
781
|
-
<span class='
|
|
782
|
-
<span class='
|
|
783
|
-
<span class='
|
|
784
|
-
</pre>
|
|
762
|
+
<span class='kw'>def</span> <span class='id grouping'>grouping</span>
|
|
763
|
+
<span class='ivar'>@grouping</span>
|
|
764
|
+
<span class='kw'>end</span></pre>
|
|
785
765
|
</td>
|
|
786
766
|
</tr>
|
|
787
767
|
</table>
|
|
@@ -799,9 +779,8 @@ grouping for a column, line, or area chart. must be one of
|
|
|
799
779
|
|
|
800
780
|
</p><div class="docstring">
|
|
801
781
|
<div class="discussion">
|
|
802
|
-
|
|
803
|
-
the category axis
|
|
804
|
-
</p>
|
|
782
|
+
|
|
783
|
+
<p>the category axis</p>
|
|
805
784
|
|
|
806
785
|
|
|
807
786
|
</div>
|
|
@@ -835,10 +814,9 @@ the category axis
|
|
|
835
814
|
<td>
|
|
836
815
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/line_3D_chart.rb', line 33</span>
|
|
837
816
|
|
|
838
|
-
<span class='
|
|
839
|
-
<span class='
|
|
840
|
-
<span class='
|
|
841
|
-
</pre>
|
|
817
|
+
<span class='kw'>def</span> <span class='id serAxis'>serAxis</span>
|
|
818
|
+
<span class='ivar'>@serAxis</span>
|
|
819
|
+
<span class='kw'>end</span></pre>
|
|
842
820
|
</td>
|
|
843
821
|
</tr>
|
|
844
822
|
</table>
|
|
@@ -856,9 +834,8 @@ the category axis
|
|
|
856
834
|
|
|
857
835
|
</p><div class="docstring">
|
|
858
836
|
<div class="discussion">
|
|
859
|
-
|
|
860
|
-
the category axis
|
|
861
|
-
</p>
|
|
837
|
+
|
|
838
|
+
<p>the category axis</p>
|
|
862
839
|
|
|
863
840
|
|
|
864
841
|
</div>
|
|
@@ -892,10 +869,9 @@ the category axis
|
|
|
892
869
|
<td>
|
|
893
870
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/line_3D_chart.rb', line 29</span>
|
|
894
871
|
|
|
895
|
-
<span class='
|
|
896
|
-
<span class='
|
|
897
|
-
<span class='
|
|
898
|
-
</pre>
|
|
872
|
+
<span class='kw'>def</span> <span class='id valAxis'>valAxis</span>
|
|
873
|
+
<span class='ivar'>@valAxis</span>
|
|
874
|
+
<span class='kw'>end</span></pre>
|
|
899
875
|
</td>
|
|
900
876
|
</tr>
|
|
901
877
|
</table>
|
|
@@ -917,9 +893,8 @@ the category axis
|
|
|
917
893
|
|
|
918
894
|
</p><div class="docstring">
|
|
919
895
|
<div class="discussion">
|
|
920
|
-
|
|
921
|
-
Serializes the bar chart
|
|
922
|
-
</p>
|
|
896
|
+
|
|
897
|
+
<p>Serializes the bar chart</p>
|
|
923
898
|
|
|
924
899
|
|
|
925
900
|
</div>
|
|
@@ -946,9 +921,6 @@ Serializes the bar chart
|
|
|
946
921
|
<pre class="lines">
|
|
947
922
|
|
|
948
923
|
|
|
949
|
-
86
|
|
950
|
-
87
|
|
951
|
-
88
|
|
952
924
|
89
|
|
953
925
|
90
|
|
954
926
|
91
|
|
@@ -961,28 +933,30 @@ Serializes the bar chart
|
|
|
961
933
|
98
|
|
962
934
|
99
|
|
963
935
|
100
|
|
964
|
-
101
|
|
936
|
+
101
|
|
937
|
+
102
|
|
938
|
+
103
|
|
939
|
+
104</pre>
|
|
965
940
|
</td>
|
|
966
941
|
<td>
|
|
967
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/line_3D_chart.rb', line
|
|
968
|
-
|
|
969
|
-
<span class='
|
|
970
|
-
<span class='
|
|
971
|
-
<span class='xml
|
|
972
|
-
<span class='xml
|
|
973
|
-
<span class='xml
|
|
974
|
-
<span class='
|
|
975
|
-
<span class='xml
|
|
976
|
-
<span class='xml
|
|
977
|
-
<span class='xml
|
|
978
|
-
<span class='xml
|
|
979
|
-
<span class='rbrace
|
|
980
|
-
<span class='
|
|
981
|
-
<span class='
|
|
982
|
-
<span class='
|
|
983
|
-
<span class='
|
|
984
|
-
<span class='
|
|
985
|
-
</pre>
|
|
942
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/line_3D_chart.rb', line 89</span>
|
|
943
|
+
|
|
944
|
+
<span class='kw'>def</span> <span class='id to_xml'>to_xml</span>
|
|
945
|
+
<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>
|
|
946
|
+
<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:line3DChart</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
947
|
+
<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>
|
|
948
|
+
<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>
|
|
949
|
+
<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>
|
|
950
|
+
<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>
|
|
951
|
+
<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>
|
|
952
|
+
<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>
|
|
953
|
+
<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'>@serAxId</span><span class='rparen'>)</span>
|
|
954
|
+
<span class='rbrace'>}</span>
|
|
955
|
+
<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>
|
|
956
|
+
<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>
|
|
957
|
+
<span class='ivar'>@serAxis</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>
|
|
958
|
+
<span class='kw'>end</span>
|
|
959
|
+
<span class='kw'>end</span></pre>
|
|
986
960
|
</td>
|
|
987
961
|
</tr>
|
|
988
962
|
</table>
|
|
@@ -993,9 +967,9 @@ Serializes the bar chart
|
|
|
993
967
|
</div>
|
|
994
968
|
|
|
995
969
|
<div id="footer">
|
|
996
|
-
Generated on
|
|
970
|
+
Generated on Sat Nov 26 13:16:39 2011 by
|
|
997
971
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
998
|
-
0.7.3 (ruby-1.
|
|
972
|
+
0.7.3 (ruby-1.9.3).
|
|
999
973
|
</div>
|
|
1000
974
|
|
|
1001
975
|
</body>
|