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/Series.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Axlsx::Series
|
8
8
|
|
9
|
-
—
|
9
|
+
— AXLSX
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -97,16 +97,14 @@
|
|
97
97
|
|
98
98
|
<div class="note notetag">
|
99
99
|
<strong>Note:</strong>
|
100
|
-
<div class='inline'
|
101
|
-
The recommended way to manage series is to use Chart#add_series
|
102
|
-
</p>
|
100
|
+
<div class='inline'>
|
101
|
+
<p>The recommended way to manage series is to use Chart#add_series</p>
|
103
102
|
</div>
|
104
103
|
</div>
|
105
104
|
|
106
|
-
|
107
|
-
A Series defines the common series attributes and is the super class for
|
108
|
-
all concrete series types
|
109
|
-
</p>
|
105
|
+
|
106
|
+
<p>A Series defines the common series attributes and is the super class for
|
107
|
+
all concrete series types.</p>
|
110
108
|
|
111
109
|
|
112
110
|
</div>
|
@@ -151,9 +149,8 @@ all concrete series types.
|
|
151
149
|
|
152
150
|
|
153
151
|
|
154
|
-
<span class="summary_desc"><div class='inline'
|
155
|
-
The chart that owns this series
|
156
|
-
</p>
|
152
|
+
<span class="summary_desc"><div class='inline'>
|
153
|
+
<p>The chart that owns this series.</p>
|
157
154
|
</div></span>
|
158
155
|
|
159
156
|
</li>
|
@@ -162,14 +159,14 @@ The chart that owns this series.
|
|
162
159
|
<li class="public ">
|
163
160
|
<span class="summary_signature">
|
164
161
|
|
165
|
-
<a href="#
|
162
|
+
<a href="#title-instance_method" title="#title (instance method)">- (SeriesTitle) <strong>title</strong> </a>
|
166
163
|
|
167
164
|
|
168
165
|
|
169
166
|
</span>
|
170
167
|
|
171
168
|
|
172
|
-
|
169
|
+
|
173
170
|
|
174
171
|
|
175
172
|
|
@@ -178,53 +175,60 @@ The chart that owns this series.
|
|
178
175
|
|
179
176
|
|
180
177
|
|
181
|
-
<span class="summary_desc"><div class='inline'
|
182
|
-
The
|
183
|
-
</p>
|
178
|
+
<span class="summary_desc"><div class='inline'>
|
179
|
+
<p>The title of the series.</p>
|
184
180
|
</div></span>
|
185
181
|
|
186
182
|
</li>
|
187
183
|
|
188
184
|
|
189
|
-
|
185
|
+
</ul>
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
<h2>
|
192
|
+
Instance Method Summary
|
193
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
194
|
+
</h2>
|
195
|
+
|
196
|
+
<ul class="summary">
|
197
|
+
|
198
|
+
<li class="public ">
|
190
199
|
<span class="summary_signature">
|
191
200
|
|
192
|
-
<a href="#
|
201
|
+
<a href="#index-instance_method" title="#index (instance method)">- (Integer) <strong>index</strong> </a>
|
193
202
|
|
194
203
|
|
195
204
|
|
196
205
|
</span>
|
197
206
|
|
198
207
|
|
199
|
-
|
200
|
-
|
201
|
-
|
202
208
|
|
203
209
|
|
204
210
|
|
205
211
|
|
206
212
|
|
207
213
|
|
208
|
-
<span class="summary_desc"><div class='inline'
|
209
|
-
The
|
210
|
-
</p>
|
214
|
+
<span class="summary_desc"><div class='inline'>
|
215
|
+
<p>The index of this series in the chart's series.</p>
|
211
216
|
</div></span>
|
212
217
|
|
213
218
|
</li>
|
214
219
|
|
215
|
-
|
216
|
-
|
220
|
+
|
221
|
+
<li class="public ">
|
217
222
|
<span class="summary_signature">
|
218
223
|
|
219
|
-
<a href="#
|
224
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Series) <strong>initialize</strong>(chart, options = {}) </a>
|
220
225
|
|
221
226
|
|
222
227
|
|
223
228
|
</span>
|
224
229
|
|
230
|
+
<span class="note title constructor">constructor</span>
|
225
231
|
|
226
|
-
|
227
|
-
|
228
232
|
|
229
233
|
|
230
234
|
|
@@ -232,38 +236,22 @@ The order of this series in the chart’s series.
|
|
232
236
|
|
233
237
|
|
234
238
|
|
235
|
-
<span class="summary_desc"><div class='inline'
|
236
|
-
|
237
|
-
</p>
|
239
|
+
<span class="summary_desc"><div class='inline'>
|
240
|
+
<p>Creates a new series.</p>
|
238
241
|
</div></span>
|
239
242
|
|
240
243
|
</li>
|
241
244
|
|
242
|
-
|
243
|
-
</ul>
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
<h2>
|
250
|
-
Instance Method Summary
|
251
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
252
|
-
</h2>
|
253
|
-
|
254
|
-
<ul class="summary">
|
255
245
|
|
256
246
|
<li class="public ">
|
257
247
|
<span class="summary_signature">
|
258
248
|
|
259
|
-
<a href="#
|
249
|
+
<a href="#order-instance_method" title="#order (instance method)">- (Integer) <strong>order</strong> </a>
|
260
250
|
|
261
251
|
|
262
252
|
|
263
253
|
</span>
|
264
254
|
|
265
|
-
<span class="note title constructor">constructor</span>
|
266
|
-
|
267
255
|
|
268
256
|
|
269
257
|
|
@@ -271,9 +259,8 @@ The title of the series.
|
|
271
259
|
|
272
260
|
|
273
261
|
|
274
|
-
<span class="summary_desc"><div class='inline'
|
275
|
-
|
276
|
-
</p>
|
262
|
+
<span class="summary_desc"><div class='inline'>
|
263
|
+
<p>The order of this series in the chart's series.</p>
|
277
264
|
</div></span>
|
278
265
|
|
279
266
|
</li>
|
@@ -282,7 +269,7 @@ Creates a new series.
|
|
282
269
|
<li class="public ">
|
283
270
|
<span class="summary_signature">
|
284
271
|
|
285
|
-
<a href="#
|
272
|
+
<a href="#order%3D-instance_method" title="#order= (instance method)">- (Object) <strong>order=</strong>(v) </a>
|
286
273
|
|
287
274
|
|
288
275
|
|
@@ -295,10 +282,7 @@ Creates a new series.
|
|
295
282
|
|
296
283
|
|
297
284
|
|
298
|
-
<span class="summary_desc"><div class='inline'
|
299
|
-
Serializes the series.
|
300
|
-
</p>
|
301
|
-
</div></span>
|
285
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
302
286
|
|
303
287
|
</li>
|
304
288
|
|
@@ -318,9 +302,8 @@ Serializes the series.
|
|
318
302
|
|
319
303
|
</p><div class="docstring">
|
320
304
|
<div class="discussion">
|
321
|
-
|
322
|
-
Creates a new series
|
323
|
-
</p>
|
305
|
+
|
306
|
+
<p>Creates a new series</p>
|
324
307
|
|
325
308
|
|
326
309
|
</div>
|
@@ -352,9 +335,8 @@ Creates a new series
|
|
352
335
|
|
353
336
|
|
354
337
|
—
|
355
|
-
<div class='inline'
|
356
|
-
a customizable set of options
|
357
|
-
</p>
|
338
|
+
<div class='inline'>
|
339
|
+
<p>a customizable set of options</p>
|
358
340
|
</div>
|
359
341
|
|
360
342
|
</li>
|
@@ -397,25 +379,26 @@ a customizable set of options
|
|
397
379
|
<pre class="lines">
|
398
380
|
|
399
381
|
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
382
|
+
20
|
383
|
+
21
|
384
|
+
22
|
385
|
+
23
|
386
|
+
24
|
387
|
+
25
|
388
|
+
26
|
389
|
+
27</pre>
|
407
390
|
</td>
|
408
391
|
<td>
|
409
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/series.rb', line
|
410
|
-
|
411
|
-
<span class='
|
412
|
-
<span class='
|
413
|
-
<span class='
|
414
|
-
<span class='
|
415
|
-
|
416
|
-
|
417
|
-
<span class='
|
418
|
-
</pre>
|
392
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/series.rb', line 20</span>
|
393
|
+
|
394
|
+
<span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id chart'>chart</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>
|
395
|
+
<span class='ivar'>@order</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
396
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id chart'>chart</span> <span class='op'>=</span> <span class='id chart'>chart</span>
|
397
|
+
<span class='ivar'>@chart</span><span class='period'>.</span><span class='id series'>series</span> <span class='op'><<</span> <span class='kw'>self</span>
|
398
|
+
<span class='id options'>options</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id o'>o</span><span class='op'>|</span>
|
399
|
+
<span class='kw'>self</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='embexpr_beg'>#{</span><span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id respond_to?'>respond_to?</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>"</span></span>
|
400
|
+
<span class='kw'>end</span>
|
401
|
+
<span class='kw'>end</span></pre>
|
419
402
|
</td>
|
420
403
|
</tr>
|
421
404
|
</table>
|
@@ -438,9 +421,8 @@ a customizable set of options
|
|
438
421
|
|
439
422
|
</p><div class="docstring">
|
440
423
|
<div class="discussion">
|
441
|
-
|
442
|
-
The chart that owns this series
|
443
|
-
</p>
|
424
|
+
|
425
|
+
<p>The chart that owns this series</p>
|
444
426
|
|
445
427
|
|
446
428
|
</div>
|
@@ -474,30 +456,28 @@ The chart that owns this series
|
|
474
456
|
<td>
|
475
457
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/series.rb', line 10</span>
|
476
458
|
|
477
|
-
<span class='
|
478
|
-
<span class='
|
479
|
-
<span class='
|
480
|
-
</pre>
|
459
|
+
<span class='kw'>def</span> <span class='id chart'>chart</span>
|
460
|
+
<span class='ivar'>@chart</span>
|
461
|
+
<span class='kw'>end</span></pre>
|
481
462
|
</td>
|
482
463
|
</tr>
|
483
464
|
</table>
|
484
465
|
</div>
|
485
466
|
|
486
467
|
|
487
|
-
<span id=""></span>
|
488
|
-
<span id="
|
468
|
+
<span id="title=-instance_method"></span>
|
469
|
+
<span id="title-instance_method"></span>
|
489
470
|
<div class="method_details ">
|
490
|
-
<p class="signature " id="
|
471
|
+
<p class="signature " id="title-instance_method">
|
491
472
|
|
492
|
-
- (<tt>
|
473
|
+
- (<tt><span class='object_link'><a href="SeriesTitle.html" title="Axlsx::SeriesTitle (class)">SeriesTitle</a></span></tt>) <strong>title</strong>
|
493
474
|
|
494
475
|
|
495
476
|
|
496
477
|
</p><div class="docstring">
|
497
478
|
<div class="discussion">
|
498
|
-
|
499
|
-
The
|
500
|
-
</p>
|
479
|
+
|
480
|
+
<p>The title of the series</p>
|
501
481
|
|
502
482
|
|
503
483
|
</div>
|
@@ -510,7 +490,7 @@ The index of this series in the chart’s series.
|
|
510
490
|
<li>
|
511
491
|
|
512
492
|
|
513
|
-
<span class='type'>(<tt>
|
493
|
+
<span class='type'>(<tt><span class='object_link'><a href="SeriesTitle.html" title="Axlsx::SeriesTitle (class)">SeriesTitle</a></span></tt>)</span>
|
514
494
|
|
515
495
|
|
516
496
|
|
@@ -531,31 +511,32 @@ The index of this series in the chart’s series.
|
|
531
511
|
<td>
|
532
512
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/series.rb', line 14</span>
|
533
513
|
|
534
|
-
<span class='
|
535
|
-
<span class='
|
536
|
-
<span class='
|
537
|
-
</pre>
|
514
|
+
<span class='kw'>def</span> <span class='id title'>title</span>
|
515
|
+
<span class='ivar'>@title</span>
|
516
|
+
<span class='kw'>end</span></pre>
|
538
517
|
</td>
|
539
518
|
</tr>
|
540
519
|
</table>
|
541
520
|
</div>
|
542
521
|
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
522
|
+
</div>
|
523
|
+
|
524
|
+
|
525
|
+
<div id="instance_method_details" class="method_details_list">
|
526
|
+
<h2>Instance Method Details</h2>
|
527
|
+
|
528
|
+
|
529
|
+
<div class="method_details first">
|
530
|
+
<p class="signature first" id="index-instance_method">
|
548
531
|
|
549
|
-
- (<tt>Integer</tt>) <strong>
|
532
|
+
- (<tt>Integer</tt>) <strong>index</strong>
|
550
533
|
|
551
534
|
|
552
535
|
|
553
536
|
</p><div class="docstring">
|
554
537
|
<div class="discussion">
|
555
|
-
|
556
|
-
The
|
557
|
-
is the index of the series.
|
558
|
-
</p>
|
538
|
+
|
539
|
+
<p>The index of this series in the chart's series.</p>
|
559
540
|
|
560
541
|
|
561
542
|
</div>
|
@@ -582,37 +563,33 @@ is the index of the series.
|
|
582
563
|
<pre class="lines">
|
583
564
|
|
584
565
|
|
585
|
-
|
586
|
-
|
587
|
-
|
566
|
+
31
|
567
|
+
32
|
568
|
+
33</pre>
|
588
569
|
</td>
|
589
570
|
<td>
|
590
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/series.rb', line
|
571
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/series.rb', line 31</span>
|
591
572
|
|
592
|
-
<span class='
|
593
|
-
<span class='
|
594
|
-
<span class='
|
595
|
-
</pre>
|
573
|
+
<span class='kw'>def</span> <span class='id index'>index</span>
|
574
|
+
<span class='ivar'>@chart</span><span class='period'>.</span><span class='id series'>series</span><span class='period'>.</span><span class='id index'>index</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
|
575
|
+
<span class='kw'>end</span></pre>
|
596
576
|
</td>
|
597
577
|
</tr>
|
598
578
|
</table>
|
599
579
|
</div>
|
600
580
|
|
601
|
-
|
602
|
-
<span id="title=-instance_method"></span>
|
603
|
-
<span id="title-instance_method"></span>
|
604
581
|
<div class="method_details ">
|
605
|
-
<p class="signature " id="
|
582
|
+
<p class="signature " id="order-instance_method">
|
606
583
|
|
607
|
-
- (<tt
|
584
|
+
- (<tt>Integer</tt>) <strong>order</strong>
|
608
585
|
|
609
586
|
|
610
587
|
|
611
588
|
</p><div class="docstring">
|
612
589
|
<div class="discussion">
|
613
|
-
|
614
|
-
The
|
615
|
-
|
590
|
+
|
591
|
+
<p>The order of this series in the chart's series. By default the order is the
|
592
|
+
index of the series.</p>
|
616
593
|
|
617
594
|
|
618
595
|
</div>
|
@@ -625,7 +602,7 @@ The title of the series
|
|
625
602
|
<li>
|
626
603
|
|
627
604
|
|
628
|
-
<span class='type'>(<tt
|
605
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
629
606
|
|
630
607
|
|
631
608
|
|
@@ -639,81 +616,43 @@ The title of the series
|
|
639
616
|
<pre class="lines">
|
640
617
|
|
641
618
|
|
642
|
-
|
643
|
-
|
644
|
-
|
619
|
+
38
|
620
|
+
39
|
621
|
+
40</pre>
|
645
622
|
</td>
|
646
623
|
<td>
|
647
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/series.rb', line
|
624
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/series.rb', line 38</span>
|
648
625
|
|
649
|
-
<span class='
|
650
|
-
<span class='
|
651
|
-
<span class='
|
652
|
-
</pre>
|
626
|
+
<span class='kw'>def</span> <span class='id order'>order</span>
|
627
|
+
<span class='ivar'>@order</span> <span class='op'>||</span> <span class='id index'>index</span>
|
628
|
+
<span class='kw'>end</span></pre>
|
653
629
|
</td>
|
654
630
|
</tr>
|
655
631
|
</table>
|
656
632
|
</div>
|
657
633
|
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
<div id="instance_method_details" class="method_details_list">
|
662
|
-
<h2>Instance Method Details</h2>
|
663
|
-
|
664
|
-
|
665
|
-
<div class="method_details first">
|
666
|
-
<p class="signature first" id="to_xml-instance_method">
|
634
|
+
<div class="method_details ">
|
635
|
+
<p class="signature " id="order=-instance_method">
|
667
636
|
|
668
|
-
- (<tt>
|
637
|
+
- (<tt>Object</tt>) <strong>order=</strong>(v)
|
669
638
|
|
670
639
|
|
671
640
|
|
672
641
|
</p><div class="docstring">
|
673
642
|
<div class="discussion">
|
674
|
-
|
675
|
-
Serializes the series
|
676
|
-
</p>
|
677
|
-
|
643
|
+
|
678
644
|
|
679
645
|
</div>
|
680
646
|
</div>
|
681
647
|
<div class="tags">
|
682
|
-
<h3>Parameters:</h3>
|
683
|
-
<ul class="param">
|
684
648
|
|
685
|
-
<li>
|
686
|
-
|
687
|
-
<span class='name'>xml</span>
|
688
|
-
|
689
|
-
|
690
|
-
<span class='type'>(<tt>Nokogiri::XML::Builder</tt>)</span>
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
—
|
695
|
-
<div class='inline'><p>
|
696
|
-
The document builder instance this objects xml will be added to.
|
697
|
-
</p>
|
698
|
-
</div>
|
699
|
-
|
700
|
-
</li>
|
701
|
-
|
702
|
-
</ul>
|
703
649
|
|
704
|
-
<h3>
|
705
|
-
<ul class="
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
<span class='type'>(<tt>String</tt>)</span>
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
</li>
|
715
|
-
|
716
|
-
</ul>
|
650
|
+
<h3>See Also:</h3>
|
651
|
+
<ul class="see">
|
652
|
+
|
653
|
+
<li>order</li>
|
654
|
+
|
655
|
+
</ul>
|
717
656
|
|
718
657
|
</div><table class="source_code">
|
719
658
|
<tr>
|
@@ -721,27 +660,12 @@ The document builder instance this objects xml will be added to.
|
|
721
660
|
<pre class="lines">
|
722
661
|
|
723
662
|
|
724
|
-
|
725
|
-
61
|
726
|
-
62
|
727
|
-
63
|
728
|
-
64
|
729
|
-
65
|
730
|
-
66
|
731
|
-
67</pre>
|
663
|
+
43</pre>
|
732
664
|
</td>
|
733
665
|
<td>
|
734
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/series.rb', line
|
735
|
-
|
736
|
-
<span class='def
|
737
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:ser'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
738
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:idx'</span><span class='comma token'>,</span> <span class='symbol val'>:val=</span><span class='gt op'>></span><span class='index identifier id'>index</span><span class='rparen token'>)</span>
|
739
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:order'</span><span class='comma token'>,</span> <span class='symbol val'>:val=</span><span class='gt op'>></span><span class='order identifier id'>order</span> <span class='orop op'>||</span> <span class='index identifier id'>index</span><span class='rparen token'>)</span>
|
740
|
-
<span class='title identifier id'>title</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='title identifier id'>title</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
|
741
|
-
<span class='yield yield kw'>yield</span> <span class='xml identifier id'>xml</span> <span class='if if_mod kw'>if</span> <span class='block_given? fid id'>block_given?</span>
|
742
|
-
<span class='rbrace token'>}</span>
|
743
|
-
<span class='end end kw'>end</span>
|
744
|
-
</pre>
|
666
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/series.rb', line 43</span>
|
667
|
+
|
668
|
+
<span class='kw'>def</span> <span class='id order='>order=</span><span class='lparen'>(</span><span class='id v'>v</span><span class='rparen'>)</span> <span class='const'>Axlsx</span><span class='op'>::</span><span class='id validate_unsigned_int'>validate_unsigned_int</span><span class='lparen'>(</span><span class='id v'>v</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='ivar'>@order</span> <span class='op'>=</span> <span class='id v'>v</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
745
669
|
</td>
|
746
670
|
</tr>
|
747
671
|
</table>
|
@@ -752,9 +676,9 @@ The document builder instance this objects xml will be added to.
|
|
752
676
|
</div>
|
753
677
|
|
754
678
|
<div id="footer">
|
755
|
-
Generated on
|
679
|
+
Generated on Sat Nov 26 13:16:37 2011 by
|
756
680
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
757
|
-
0.7.3 (ruby-1.
|
681
|
+
0.7.3 (ruby-1.9.3).
|
758
682
|
</div>
|
759
683
|
|
760
684
|
</body>
|