axlsx 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. data/CHANGELOG.md +14 -0
  2. data/README.md +22 -21
  3. data/Rakefile +1 -1
  4. data/axlsx.gemspec +36 -0
  5. data/doc/Axlsx.html +373 -559
  6. data/doc/Axlsx/App.html +257 -360
  7. data/doc/Axlsx/Axis.html +113 -144
  8. data/doc/Axlsx/Bar3DChart.html +122 -152
  9. data/doc/Axlsx/BarSeries.html +67 -81
  10. data/doc/Axlsx/Border.html +96 -119
  11. data/doc/Axlsx/BorderPr.html +89 -114
  12. data/doc/Axlsx/CatAxis.html +79 -104
  13. data/doc/Axlsx/CatAxisData.html +40 -54
  14. data/doc/Axlsx/Cell.html +193 -679
  15. data/doc/Axlsx/CellAlignment.html +116 -157
  16. data/doc/Axlsx/CellProtection.html +50 -68
  17. data/doc/Axlsx/CellStyle.html +78 -106
  18. data/doc/Axlsx/Chart.html +361 -432
  19. data/doc/Axlsx/Color.html +56 -78
  20. data/doc/Axlsx/ContentType.html +28 -41
  21. data/doc/Axlsx/Core.html +43 -55
  22. data/doc/Axlsx/DataTypeValidator.html +34 -43
  23. data/doc/Axlsx/Default.html +55 -81
  24. data/doc/Axlsx/Drawing.html +322 -412
  25. data/doc/Axlsx/Fill.html +34 -47
  26. data/doc/Axlsx/Font.html +157 -207
  27. data/doc/Axlsx/GradientFill.html +90 -122
  28. data/doc/Axlsx/GradientStop.html +36 -50
  29. data/doc/Axlsx/GraphicFrame.html +106 -130
  30. data/doc/Axlsx/Line3DChart.html +108 -134
  31. data/doc/Axlsx/LineSeries.html +58 -67
  32. data/doc/Axlsx/Marker.html +84 -111
  33. data/doc/Axlsx/NumFmt.html +83 -102
  34. data/doc/Axlsx/OneCellAnchor.html +158 -196
  35. data/doc/Axlsx/Override.html +60 -92
  36. data/doc/Axlsx/Package.html +190 -759
  37. data/doc/Axlsx/PatternFill.html +78 -99
  38. data/doc/Axlsx/Pic.html +451 -405
  39. data/doc/Axlsx/Pie3DChart.html +33 -42
  40. data/doc/Axlsx/PieSeries.html +68 -80
  41. data/doc/Axlsx/RegexValidator.html +15 -20
  42. data/doc/Axlsx/Relationship.html +49 -66
  43. data/doc/Axlsx/Relationships.html +28 -41
  44. data/doc/Axlsx/RestrictionValidator.html +23 -32
  45. data/doc/Axlsx/Row.html +132 -161
  46. data/doc/Axlsx/Scaling.html +71 -90
  47. data/doc/Axlsx/SerAxis.html +61 -79
  48. data/doc/Axlsx/Series.html +125 -201
  49. data/doc/Axlsx/SeriesTitle.html +26 -31
  50. data/doc/Axlsx/Styles.html +286 -355
  51. data/doc/Axlsx/TableStyle.html +62 -87
  52. data/doc/Axlsx/TableStyleElement.html +84 -104
  53. data/doc/Axlsx/TableStyles.html +59 -82
  54. data/doc/Axlsx/Title.html +58 -155
  55. data/doc/Axlsx/TwoCellAnchor.html +165 -204
  56. data/doc/Axlsx/ValAxis.html +39 -53
  57. data/doc/Axlsx/ValAxisData.html +29 -39
  58. data/doc/Axlsx/View3D.html +93 -122
  59. data/doc/Axlsx/Workbook.html +359 -362
  60. data/doc/Axlsx/Worksheet.html +471 -816
  61. data/doc/Axlsx/Xf.html +341 -296
  62. data/doc/_index.html +7 -11
  63. data/doc/class_list.html +1 -1
  64. data/doc/file.LICENSE.html +86 -0
  65. data/doc/file.README.html +105 -107
  66. data/doc/file_list.html +3 -0
  67. data/doc/frames.html +1 -1
  68. data/doc/index.html +105 -107
  69. data/doc/method_list.html +426 -602
  70. data/doc/top-level-namespace.html +3 -3
  71. data/examples/example.rb +20 -1
  72. data/lib/axlsx.rb +20 -15
  73. data/lib/axlsx/content_type/default.rb +8 -3
  74. data/lib/axlsx/content_type/override.rb +11 -4
  75. data/lib/axlsx/doc_props/app.rb +53 -23
  76. data/lib/axlsx/drawing/axis.rb +16 -5
  77. data/lib/axlsx/drawing/bar_3D_chart.rb +15 -7
  78. data/lib/axlsx/drawing/bar_series.rb +7 -5
  79. data/lib/axlsx/drawing/cat_axis.rb +10 -3
  80. data/lib/axlsx/drawing/chart.rb +21 -15
  81. data/lib/axlsx/drawing/drawing.rb +16 -30
  82. data/lib/axlsx/drawing/graphic_frame.rb +2 -4
  83. data/lib/axlsx/drawing/line_3D_chart.rb +5 -2
  84. data/lib/axlsx/drawing/line_series.rb +6 -5
  85. data/lib/axlsx/drawing/marker.rb +9 -5
  86. data/lib/axlsx/drawing/one_cell_anchor.rb +7 -7
  87. data/lib/axlsx/drawing/pic.rb +29 -37
  88. data/lib/axlsx/drawing/pie_series.rb +7 -5
  89. data/lib/axlsx/drawing/scaling.rb +11 -5
  90. data/lib/axlsx/drawing/ser_axis.rb +6 -2
  91. data/lib/axlsx/drawing/series.rb +11 -11
  92. data/lib/axlsx/drawing/series_title.rb +1 -1
  93. data/lib/axlsx/drawing/title.rb +5 -12
  94. data/lib/axlsx/drawing/two_cell_anchor.rb +2 -3
  95. data/lib/axlsx/drawing/val_axis.rb +2 -2
  96. data/lib/axlsx/drawing/view_3D.rb +16 -9
  97. data/lib/axlsx/package.rb +25 -27
  98. data/lib/axlsx/rels/relationship.rb +4 -2
  99. data/lib/axlsx/stylesheet/border.rb +9 -4
  100. data/lib/axlsx/stylesheet/border_pr.rb +7 -4
  101. data/lib/axlsx/stylesheet/cell_alignment.rb +18 -9
  102. data/lib/axlsx/stylesheet/cell_protection.rb +5 -2
  103. data/lib/axlsx/stylesheet/cell_style.rb +12 -7
  104. data/lib/axlsx/stylesheet/color.rb +8 -6
  105. data/lib/axlsx/stylesheet/fill.rb +2 -1
  106. data/lib/axlsx/stylesheet/font.rb +24 -13
  107. data/lib/axlsx/stylesheet/gradient_fill.rb +16 -10
  108. data/lib/axlsx/stylesheet/gradient_stop.rb +5 -3
  109. data/lib/axlsx/stylesheet/num_fmt.rb +4 -2
  110. data/lib/axlsx/stylesheet/pattern_fill.rb +6 -4
  111. data/lib/axlsx/stylesheet/styles.rb +12 -12
  112. data/lib/axlsx/stylesheet/table_style.rb +6 -3
  113. data/lib/axlsx/stylesheet/table_style_element.rb +9 -4
  114. data/lib/axlsx/stylesheet/table_styles.rb +4 -4
  115. data/lib/axlsx/stylesheet/xf.rb +52 -31
  116. data/lib/axlsx/util/validators.rb +3 -3
  117. data/lib/axlsx/version.rb +1 -1
  118. data/lib/axlsx/workbook/workbook.rb +8 -9
  119. data/lib/axlsx/workbook/worksheet/cell.rb +25 -16
  120. data/lib/axlsx/workbook/worksheet/row.rb +2 -4
  121. data/lib/axlsx/workbook/worksheet/worksheet.rb +23 -32
  122. data/test/drawing/tc_one_cell_anchor.rb +1 -1
  123. metadata +135 -165
  124. data/doc/Axlsx/SimpleTypedList.html +0 -1686
  125. data/lib/schema/dc.xsd~ +0 -118
  126. data/lib/schema/dcterms.xsd~ +0 -331
  127. data/lib/schema/opc-coreProperties.xsd~ +0 -50
  128. data/test/drawing/tc_line_series.tc~ +0 -34
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Axlsx::Series
8
8
 
9
- &mdash; Documentation by YARD 0.7.3
9
+ &mdash; 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'><p>
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
- <p>
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'><p>
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="#index-instance_method" title="#index (instance method)">- (Integer) <strong>index</strong> </a>
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
- <span class="note title readonly">readonly</span>
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'><p>
182
- The index of this series in the chart&#8217;s series.
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
- <li class="public ">
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="#order-instance_method" title="#order (instance method)">- (Integer) <strong>order</strong> </a>
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'><p>
209
- The order of this series in the chart&#8217;s series.
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
- <li class="public ">
220
+
221
+ <li class="public ">
217
222
  <span class="summary_signature">
218
223
 
219
- <a href="#title-instance_method" title="#title (instance method)">- (SeriesTitle) <strong>title</strong> </a>
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&#8217;s series.
232
236
 
233
237
 
234
238
 
235
- <span class="summary_desc"><div class='inline'><p>
236
- The title of the series.
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="#initialize-instance_method" title="#initialize (instance method)">- (Series) <strong>initialize</strong>(chart, options = {}) </a>
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'><p>
275
- Creates a new series.
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="#to_xml-instance_method" title="#to_xml (instance method)">- (String) <strong>to_xml</strong>(xml) </a>
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'><p>
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
- <p>
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
  &mdash;
355
- <div class='inline'><p>
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
- 28
401
- 29
402
- 30
403
- 31
404
- 32
405
- 33
406
- 34</pre>
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 28</span>
410
-
411
- <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='chart identifier id'>chart</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
412
- <span class='self self kw'>self</span><span class='dot token'>.</span><span class='chart identifier id'>chart</span> <span class='assign token'>=</span> <span class='chart identifier id'>chart</span>
413
- <span class='@chart ivar id'>@chart</span><span class='dot token'>.</span><span class='series identifier id'>series</span> <span class='lshft op'>&lt;&lt;</span> <span class='self self kw'>self</span>
414
- <span class='options identifier id'>options</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='o identifier id'>o</span><span class='bitor op'>|</span>
415
- <span class='self self kw'>self</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='dstring node'>&quot;#{o[0]}=&quot;</span><span class='comma token'>,</span> <span class='o identifier id'>o</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='respond_to? fid id'>respond_to?</span> <span class='dstring node'>&quot;#{o[0]}=&quot;</span>
416
- <span class='end end kw'>end</span>
417
- <span class='end end kw'>end</span>
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'>&lt;&lt;</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'>&quot;</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'>&quot;</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'>&quot;</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'>&quot;</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
- <p>
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='def def kw'>def</span> <span class='chart identifier id'>chart</span>
478
- <span class='@chart ivar id'>@chart</span>
479
- <span class='end end kw'>end</span>
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="index-instance_method"></span>
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="index-instance_method">
471
+ <p class="signature " id="title-instance_method">
491
472
 
492
- - (<tt>Integer</tt>) <strong>index</strong> <span class="extras">(readonly)</span>
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
- <p>
499
- The index of this series in the chart&#8217;s series.
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&#8217;s series.
510
490
  <li>
511
491
 
512
492
 
513
- <span class='type'>(<tt>Integer</tt>)</span>
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&#8217;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='def def kw'>def</span> <span class='index identifier id'>index</span>
535
- <span class='@chart ivar id'>@chart</span><span class='dot token'>.</span><span class='series identifier id'>series</span><span class='dot token'>.</span><span class='index identifier id'>index</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='rparen token'>)</span>
536
- <span class='end end kw'>end</span>
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
- <span id="order=-instance_method"></span>
545
- <span id="order-instance_method"></span>
546
- <div class="method_details ">
547
- <p class="signature " id="order-instance_method">
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>order</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
- <p>
556
- The order of this series in the chart&#8217;s series. By default the order
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
- 18
586
- 19
587
- 20</pre>
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 18</span>
571
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/series.rb', line 31</span>
591
572
 
592
- <span class='def def kw'>def</span> <span class='order identifier id'>order</span>
593
- <span class='@order ivar id'>@order</span> <span class='orop op'>||</span> <span class='index identifier id'>index</span>
594
- <span class='end end kw'>end</span>
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="title-instance_method">
582
+ <p class="signature " id="order-instance_method">
606
583
 
607
- - (<tt><span class='object_link'><a href="SeriesTitle.html" title="Axlsx::SeriesTitle (class)">SeriesTitle</a></span></tt>) <strong>title</strong>
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
- <p>
614
- The title of the series
615
- </p>
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><span class='object_link'><a href="SeriesTitle.html" title="Axlsx::SeriesTitle (class)">SeriesTitle</a></span></tt>)</span>
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
- 22
643
- 23
644
- 24</pre>
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 22</span>
624
+ <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/series.rb', line 38</span>
648
625
 
649
- <span class='def def kw'>def</span> <span class='title identifier id'>title</span>
650
- <span class='@title ivar id'>@title</span>
651
- <span class='end end kw'>end</span>
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
- </div>
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>String</tt>) <strong>to_xml</strong>(xml)
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
- <p>
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
- &mdash;
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>Returns:</h3>
705
- <ul class="return">
706
-
707
- <li>
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
- 60
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 60</span>
735
-
736
- <span class='def def kw'>def</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>
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'>&gt;</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'>&gt;</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 Wed Nov 23 21:47:51 2011 by
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.8.7).
681
+ 0.7.3 (ruby-1.9.3).
758
682
  </div>
759
683
 
760
684
  </body>