axlsx 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. data/.yardopts +4 -0
  2. data/README.md +7 -4
  3. data/examples/example.rb +6 -4
  4. data/examples/example.rb~ +112 -0
  5. data/lib/schema/dc.xsd~ +118 -0
  6. data/lib/schema/dcterms.xsd~ +331 -0
  7. data/lib/schema/opc-coreProperties.xsd~ +50 -0
  8. metadata +43 -193
  9. data/Gemfile +0 -3
  10. data/Gemfile.lock +0 -29
  11. data/axlsx.gemspec +0 -42
  12. data/doc/Axlsx.html +0 -2718
  13. data/doc/Axlsx/App.html +0 -2640
  14. data/doc/Axlsx/Axis.html +0 -1075
  15. data/doc/Axlsx/Bar3DChart.html +0 -1182
  16. data/doc/Axlsx/BarSeries.html +0 -711
  17. data/doc/Axlsx/Border.html +0 -779
  18. data/doc/Axlsx/BorderPr.html +0 -709
  19. data/doc/Axlsx/CatAxis.html +0 -769
  20. data/doc/Axlsx/CatAxisData.html +0 -397
  21. data/doc/Axlsx/Cell.html +0 -3187
  22. data/doc/Axlsx/CellAlignment.html +0 -1247
  23. data/doc/Axlsx/CellProtection.html +0 -565
  24. data/doc/Axlsx/CellStyle.html +0 -949
  25. data/doc/Axlsx/Chart.html +0 -1692
  26. data/doc/Axlsx/Color.html +0 -670
  27. data/doc/Axlsx/ContentType.html +0 -335
  28. data/doc/Axlsx/Core.html +0 -465
  29. data/doc/Axlsx/DataTypeValidator.html +0 -324
  30. data/doc/Axlsx/Default.html +0 -565
  31. data/doc/Axlsx/Drawing.html +0 -1264
  32. data/doc/Axlsx/Fill.html +0 -460
  33. data/doc/Axlsx/Font.html +0 -1554
  34. data/doc/Axlsx/GradientFill.html +0 -1026
  35. data/doc/Axlsx/GradientStop.html +0 -526
  36. data/doc/Axlsx/GraphicFrame.html +0 -642
  37. data/doc/Axlsx/Line3DChart.html +0 -1004
  38. data/doc/Axlsx/LineSeries.html +0 -605
  39. data/doc/Axlsx/Marker.html +0 -857
  40. data/doc/Axlsx/NumFmt.html +0 -562
  41. data/doc/Axlsx/OneCellAnchor.html +0 -982
  42. data/doc/Axlsx/Override.html +0 -552
  43. data/doc/Axlsx/Package.html +0 -825
  44. data/doc/Axlsx/Parser.html +0 -549
  45. data/doc/Axlsx/PatternFill.html +0 -681
  46. data/doc/Axlsx/Pic.html +0 -1701
  47. data/doc/Axlsx/PictureLocking.html +0 -1159
  48. data/doc/Axlsx/Pie3DChart.html +0 -489
  49. data/doc/Axlsx/PieSeries.html +0 -710
  50. data/doc/Axlsx/RegexValidator.html +0 -268
  51. data/doc/Axlsx/Relationship.html +0 -554
  52. data/doc/Axlsx/Relationships.html +0 -338
  53. data/doc/Axlsx/RestrictionValidator.html +0 -300
  54. data/doc/Axlsx/Row.html +0 -916
  55. data/doc/Axlsx/Scaling.html +0 -742
  56. data/doc/Axlsx/SerAxis.html +0 -641
  57. data/doc/Axlsx/Series.html +0 -813
  58. data/doc/Axlsx/SeriesTitle.html +0 -290
  59. data/doc/Axlsx/Styles.html +0 -1754
  60. data/doc/Axlsx/TableStyle.html +0 -705
  61. data/doc/Axlsx/TableStyleElement.html +0 -677
  62. data/doc/Axlsx/TableStyles.html +0 -594
  63. data/doc/Axlsx/Title.html +0 -543
  64. data/doc/Axlsx/TwoCellAnchor.html +0 -973
  65. data/doc/Axlsx/ValAxis.html +0 -538
  66. data/doc/Axlsx/ValAxisData.html +0 -321
  67. data/doc/Axlsx/View3D.html +0 -973
  68. data/doc/Axlsx/Workbook.html +0 -1630
  69. data/doc/Axlsx/Worksheet.html +0 -2682
  70. data/doc/Axlsx/Xf.html +0 -1780
  71. data/doc/_index.html +0 -649
  72. data/doc/class_list.html +0 -47
  73. data/doc/css/common.css +0 -1
  74. data/doc/css/full_list.css +0 -55
  75. data/doc/css/style.css +0 -322
  76. data/doc/file.LICENSE.html +0 -91
  77. data/doc/file.README.html +0 -338
  78. data/doc/file_list.html +0 -52
  79. data/doc/frames.html +0 -13
  80. data/doc/index.html +0 -338
  81. data/doc/js/app.js +0 -205
  82. data/doc/js/full_list.js +0 -167
  83. data/doc/js/jquery.js +0 -16
  84. data/doc/method_list.html +0 -3502
  85. data/doc/top-level-namespace.html +0 -103
  86. data/lib/axlsx.rb +0 -54
  87. data/lib/axlsx/content_type/content_type.rb +0 -23
  88. data/lib/axlsx/content_type/default.rb +0 -37
  89. data/lib/axlsx/content_type/override.rb +0 -37
  90. data/lib/axlsx/doc_props/app.rb +0 -178
  91. data/lib/axlsx/doc_props/core.rb +0 -34
  92. data/lib/axlsx/drawing/axis.rb +0 -90
  93. data/lib/axlsx/drawing/bar_3D_chart.rb +0 -128
  94. data/lib/axlsx/drawing/bar_series.rb +0 -64
  95. data/lib/axlsx/drawing/cat_axis.rb +0 -63
  96. data/lib/axlsx/drawing/cat_axis_data.rb +0 -35
  97. data/lib/axlsx/drawing/chart.rb +0 -179
  98. data/lib/axlsx/drawing/drawing.rb +0 -137
  99. data/lib/axlsx/drawing/graphic_frame.rb +0 -52
  100. data/lib/axlsx/drawing/line_3D_chart.rb +0 -106
  101. data/lib/axlsx/drawing/line_series.rb +0 -46
  102. data/lib/axlsx/drawing/marker.rb +0 -61
  103. data/lib/axlsx/drawing/one_cell_anchor.rb +0 -89
  104. data/lib/axlsx/drawing/pic.rb +0 -153
  105. data/lib/axlsx/drawing/picture_locking.rb +0 -72
  106. data/lib/axlsx/drawing/pie_3D_chart.rb +0 -41
  107. data/lib/axlsx/drawing/pie_series.rb +0 -56
  108. data/lib/axlsx/drawing/scaling.rb +0 -59
  109. data/lib/axlsx/drawing/ser_axis.rb +0 -45
  110. data/lib/axlsx/drawing/series.rb +0 -71
  111. data/lib/axlsx/drawing/series_title.rb +0 -22
  112. data/lib/axlsx/drawing/title.rb +0 -61
  113. data/lib/axlsx/drawing/two_cell_anchor.rb +0 -76
  114. data/lib/axlsx/drawing/val_axis.rb +0 -34
  115. data/lib/axlsx/drawing/val_axis_data.rb +0 -28
  116. data/lib/axlsx/drawing/view_3D.rb +0 -85
  117. data/lib/axlsx/package.rb +0 -214
  118. data/lib/axlsx/rels/relationship.rb +0 -44
  119. data/lib/axlsx/rels/relationships.rb +0 -25
  120. data/lib/axlsx/stylesheet/border.rb +0 -57
  121. data/lib/axlsx/stylesheet/border_pr.rb +0 -68
  122. data/lib/axlsx/stylesheet/cell_alignment.rb +0 -105
  123. data/lib/axlsx/stylesheet/cell_protection.rb +0 -36
  124. data/lib/axlsx/stylesheet/cell_style.rb +0 -65
  125. data/lib/axlsx/stylesheet/color.rb +0 -69
  126. data/lib/axlsx/stylesheet/fill.rb +0 -32
  127. data/lib/axlsx/stylesheet/font.rb +0 -139
  128. data/lib/axlsx/stylesheet/gradient_fill.rb +0 -76
  129. data/lib/axlsx/stylesheet/gradient_stop.rb +0 -33
  130. data/lib/axlsx/stylesheet/num_fmt.rb +0 -63
  131. data/lib/axlsx/stylesheet/pattern_fill.rb +0 -66
  132. data/lib/axlsx/stylesheet/styles.rb +0 -298
  133. data/lib/axlsx/stylesheet/table_style.rb +0 -47
  134. data/lib/axlsx/stylesheet/table_style_element.rb +0 -71
  135. data/lib/axlsx/stylesheet/table_styles.rb +0 -39
  136. data/lib/axlsx/stylesheet/xf.rb +0 -138
  137. data/lib/axlsx/util/constants.rb +0 -216
  138. data/lib/axlsx/util/parser.rb +0 -43
  139. data/lib/axlsx/util/simple_typed_list.rb +0 -160
  140. data/lib/axlsx/util/validators.rb +0 -132
  141. data/lib/axlsx/version.rb +0 -4
  142. data/lib/axlsx/workbook/workbook.rb +0 -160
  143. data/lib/axlsx/workbook/worksheet/cell.rb +0 -340
  144. data/lib/axlsx/workbook/worksheet/row.rb +0 -107
  145. data/lib/axlsx/workbook/worksheet/worksheet.rb +0 -278
@@ -1,813 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Class: Axlsx::Series
8
-
9
- &mdash; AXLSX
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- relpath = '..';
19
- if (relpath != '') relpath += '/';
20
- </script>
21
-
22
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
-
24
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
-
26
-
27
- </head>
28
- <body>
29
- <script type="text/javascript" charset="utf-8">
30
- if (window.top.frames.main) document.body.className = 'frames';
31
- </script>
32
-
33
- <div id="header">
34
- <div id="menu">
35
-
36
- <a href="../_index.html">Index (S)</a> &raquo;
37
- <span class='title'><span class='object_link'><a href="../Axlsx.html" title="Axlsx (module)">Axlsx</a></span></span>
38
- &raquo;
39
- <span class="title">Series</span>
40
-
41
-
42
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
- </div>
44
-
45
- <div id="search">
46
-
47
- <a id="class_list_link" href="#">Class List</a>
48
-
49
- <a id="method_list_link" href="#">Method List</a>
50
-
51
- <a id="file_list_link" href="#">File List</a>
52
-
53
- </div>
54
- <div class="clear"></div>
55
- </div>
56
-
57
- <iframe id="search_frame"></iframe>
58
-
59
- <div id="content"><h1>Class: Axlsx::Series
60
-
61
-
62
-
63
- </h1>
64
-
65
- <dl class="box">
66
-
67
- <dt class="r1">Inherits:</dt>
68
- <dd class="r1">
69
- <span class="inheritName">Object</span>
70
-
71
- <ul class="fullTree">
72
- <li>Object</li>
73
-
74
- <li class="next">Axlsx::Series</li>
75
-
76
- </ul>
77
- <a href="#" class="inheritanceTree">show all</a>
78
-
79
- </dd>
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
- <dt class="r2 last">Defined in:</dt>
90
- <dd class="r2 last">lib/axlsx/drawing/series.rb</dd>
91
-
92
- </dl>
93
- <div class="clear"></div>
94
-
95
- <h2>Overview</h2><div class="docstring">
96
- <div class="discussion">
97
-
98
- <div class="note notetag">
99
- <strong>Note:</strong>
100
- <div class='inline'><p>
101
- The recommended way to manage series is to use Chart#add_series
102
- </p>
103
- </div>
104
- </div>
105
-
106
- <p>
107
- A Series defines the common series attributes and is the super class for
108
- all concrete series types.
109
- </p>
110
-
111
-
112
- </div>
113
- </div>
114
- <div class="tags">
115
-
116
-
117
- <h3>See Also:</h3>
118
- <ul class="see">
119
-
120
- <li><span class='object_link'><a href="Worksheet.html#add_chart-instance_method" title="Axlsx::Worksheet#add_chart (method)">Worksheet#add_chart</a></span></li>
121
-
122
- <li><span class='object_link'><a href="Chart.html#add_series-instance_method" title="Axlsx::Chart#add_series (method)">Chart#add_series</a></span></li>
123
-
124
- </ul>
125
-
126
- </div><div id="subclasses">
127
- <h2>Direct Known Subclasses</h2>
128
- <p class="children"><span class='object_link'><a href="BarSeries.html" title="Axlsx::BarSeries (class)">BarSeries</a></span>, <span class='object_link'><a href="LineSeries.html" title="Axlsx::LineSeries (class)">LineSeries</a></span>, <span class='object_link'><a href="PieSeries.html" title="Axlsx::PieSeries (class)">PieSeries</a></span></p>
129
- </div>
130
-
131
-
132
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
133
- <ul class="summary">
134
-
135
- <li class="public ">
136
- <span class="summary_signature">
137
-
138
- <a href="#chart-instance_method" title="#chart (instance method)">- (Chart) <strong>chart</strong> </a>
139
-
140
-
141
-
142
- </span>
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
- <span class="summary_desc"><div class='inline'><p>
155
- The chart that owns this series.
156
- </p>
157
- </div></span>
158
-
159
- </li>
160
-
161
-
162
- <li class="public ">
163
- <span class="summary_signature">
164
-
165
- <a href="#title-instance_method" title="#title (instance method)">- (SeriesTitle) <strong>title</strong> </a>
166
-
167
-
168
-
169
- </span>
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
- <span class="summary_desc"><div class='inline'><p>
182
- The title of the series.
183
- </p>
184
- </div></span>
185
-
186
- </li>
187
-
188
-
189
- </ul>
190
-
191
-
192
-
193
-
194
-
195
- <h2>
196
- Instance Method Summary
197
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
198
- </h2>
199
-
200
- <ul class="summary">
201
-
202
- <li class="public ">
203
- <span class="summary_signature">
204
-
205
- <a href="#index-instance_method" title="#index (instance method)">- (Integer) <strong>index</strong> </a>
206
-
207
-
208
-
209
- </span>
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
- <span class="summary_desc"><div class='inline'><p>
219
- The index of this series in the chart&#8217;s series.
220
- </p>
221
- </div></span>
222
-
223
- </li>
224
-
225
-
226
- <li class="public ">
227
- <span class="summary_signature">
228
-
229
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Series) <strong>initialize</strong>(chart, options = {}) </a>
230
-
231
-
232
-
233
- </span>
234
-
235
- <span class="note title constructor">constructor</span>
236
-
237
-
238
-
239
-
240
-
241
-
242
-
243
-
244
- <span class="summary_desc"><div class='inline'><p>
245
- Creates a new series.
246
- </p>
247
- </div></span>
248
-
249
- </li>
250
-
251
-
252
- <li class="public ">
253
- <span class="summary_signature">
254
-
255
- <a href="#order-instance_method" title="#order (instance method)">- (Integer) <strong>order</strong> </a>
256
-
257
-
258
-
259
- </span>
260
-
261
-
262
-
263
-
264
-
265
-
266
-
267
-
268
- <span class="summary_desc"><div class='inline'><p>
269
- The order of this series in the chart&#8217;s series.
270
- </p>
271
- </div></span>
272
-
273
- </li>
274
-
275
-
276
- <li class="public ">
277
- <span class="summary_signature">
278
-
279
- <a href="#order%3D-instance_method" title="#order= (instance method)">- (Object) <strong>order=</strong>(v) </a>
280
-
281
-
282
-
283
- </span>
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
- <span class="summary_desc"><div class='inline'></div></span>
293
-
294
- </li>
295
-
296
-
297
- <li class="public ">
298
- <span class="summary_signature">
299
-
300
- <a href="#to_xml-instance_method" title="#to_xml (instance method)">- (String) <strong>to_xml</strong>(xml) </a>
301
-
302
-
303
-
304
- </span>
305
-
306
-
307
-
308
-
309
-
310
-
311
-
312
-
313
- <span class="summary_desc"><div class='inline'><p>
314
- Serializes the series.
315
- </p>
316
- </div></span>
317
-
318
- </li>
319
-
320
-
321
- </ul>
322
-
323
-
324
- <div id="constructor_details" class="method_details_list">
325
- <h2>Constructor Details</h2>
326
-
327
- <div class="method_details first">
328
- <p class="signature first" id="initialize-instance_method">
329
-
330
- - (<tt><span class='object_link'><a href="" title="Axlsx::Series (class)">Series</a></span></tt>) <strong>initialize</strong>(chart, options = {})
331
-
332
-
333
-
334
- </p><div class="docstring">
335
- <div class="discussion">
336
- <p>
337
- Creates a new series
338
- </p>
339
-
340
-
341
- </div>
342
- </div>
343
- <div class="tags">
344
- <h3>Parameters:</h3>
345
- <ul class="param">
346
-
347
- <li>
348
-
349
- <span class='name'>chart</span>
350
-
351
-
352
- <span class='type'>(<tt><span class='object_link'><a href="Chart.html" title="Axlsx::Chart (class)">Chart</a></span></tt>)</span>
353
-
354
-
355
-
356
- </li>
357
-
358
- <li>
359
-
360
- <span class='name'>options</span>
361
-
362
-
363
- <span class='type'>(<tt>Hash</tt>)</span>
364
-
365
-
366
- <em class="default">(defaults to: <tt>{}</tt>)</em>
367
-
368
-
369
- &mdash;
370
- <div class='inline'><p>
371
- a customizable set of options
372
- </p>
373
- </div>
374
-
375
- </li>
376
-
377
- </ul>
378
-
379
-
380
-
381
-
382
-
383
-
384
- <h3>Options Hash (<tt>options</tt>):</h3>
385
- <ul class="option">
386
-
387
- <li>
388
- <span class="name">order</span>
389
- <span class="type">(<tt>Integer</tt>)</span>
390
- <span class="default">
391
-
392
- </span>
393
-
394
- </li>
395
-
396
- <li>
397
- <span class="name">title</span>
398
- <span class="type">(<tt>String</tt>)</span>
399
- <span class="default">
400
-
401
- </span>
402
-
403
- </li>
404
-
405
- </ul>
406
-
407
-
408
-
409
- </div><table class="source_code">
410
- <tr>
411
- <td>
412
- <pre class="lines">
413
-
414
-
415
- 20
416
- 21
417
- 22
418
- 23
419
- 24
420
- 25
421
- 26
422
- 27</pre>
423
- </td>
424
- <td>
425
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/series.rb', line 20</span>
426
-
427
- <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>
428
- <span class='@order ivar id'>@order</span> <span class='assign token'>=</span> <span class='nil nil kw'>nil</span>
429
- <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>
430
- <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>
431
- <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>
432
- <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>
433
- <span class='end end kw'>end</span>
434
- <span class='end end kw'>end</span>
435
- </pre>
436
- </td>
437
- </tr>
438
- </table>
439
- </div>
440
-
441
- </div>
442
-
443
- <div id="instance_attr_details" class="attr_details">
444
- <h2>Instance Attribute Details</h2>
445
-
446
-
447
- <span id="chart=-instance_method"></span>
448
- <span id="chart-instance_method"></span>
449
- <div class="method_details first">
450
- <p class="signature first" id="chart-instance_method">
451
-
452
- - (<tt><span class='object_link'><a href="Chart.html" title="Axlsx::Chart (class)">Chart</a></span></tt>) <strong>chart</strong>
453
-
454
-
455
-
456
- </p><div class="docstring">
457
- <div class="discussion">
458
- <p>
459
- The chart that owns this series
460
- </p>
461
-
462
-
463
- </div>
464
- </div>
465
- <div class="tags">
466
-
467
- <h3>Returns:</h3>
468
- <ul class="return">
469
-
470
- <li>
471
-
472
-
473
- <span class='type'>(<tt><span class='object_link'><a href="Chart.html" title="Axlsx::Chart (class)">Chart</a></span></tt>)</span>
474
-
475
-
476
-
477
- </li>
478
-
479
- </ul>
480
-
481
- </div><table class="source_code">
482
- <tr>
483
- <td>
484
- <pre class="lines">
485
-
486
-
487
- 10
488
- 11
489
- 12</pre>
490
- </td>
491
- <td>
492
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/series.rb', line 10</span>
493
-
494
- <span class='def def kw'>def</span> <span class='chart identifier id'>chart</span>
495
- <span class='@chart ivar id'>@chart</span>
496
- <span class='end end kw'>end</span>
497
- </pre>
498
- </td>
499
- </tr>
500
- </table>
501
- </div>
502
-
503
-
504
- <span id="title=-instance_method"></span>
505
- <span id="title-instance_method"></span>
506
- <div class="method_details ">
507
- <p class="signature " id="title-instance_method">
508
-
509
- - (<tt><span class='object_link'><a href="SeriesTitle.html" title="Axlsx::SeriesTitle (class)">SeriesTitle</a></span></tt>) <strong>title</strong>
510
-
511
-
512
-
513
- </p><div class="docstring">
514
- <div class="discussion">
515
- <p>
516
- The title of the series
517
- </p>
518
-
519
-
520
- </div>
521
- </div>
522
- <div class="tags">
523
-
524
- <h3>Returns:</h3>
525
- <ul class="return">
526
-
527
- <li>
528
-
529
-
530
- <span class='type'>(<tt><span class='object_link'><a href="SeriesTitle.html" title="Axlsx::SeriesTitle (class)">SeriesTitle</a></span></tt>)</span>
531
-
532
-
533
-
534
- </li>
535
-
536
- </ul>
537
-
538
- </div><table class="source_code">
539
- <tr>
540
- <td>
541
- <pre class="lines">
542
-
543
-
544
- 14
545
- 15
546
- 16</pre>
547
- </td>
548
- <td>
549
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/series.rb', line 14</span>
550
-
551
- <span class='def def kw'>def</span> <span class='title identifier id'>title</span>
552
- <span class='@title ivar id'>@title</span>
553
- <span class='end end kw'>end</span>
554
- </pre>
555
- </td>
556
- </tr>
557
- </table>
558
- </div>
559
-
560
- </div>
561
-
562
-
563
- <div id="instance_method_details" class="method_details_list">
564
- <h2>Instance Method Details</h2>
565
-
566
-
567
- <div class="method_details first">
568
- <p class="signature first" id="index-instance_method">
569
-
570
- - (<tt>Integer</tt>) <strong>index</strong>
571
-
572
-
573
-
574
- </p><div class="docstring">
575
- <div class="discussion">
576
- <p>
577
- The index of this series in the chart&#8217;s series.
578
- </p>
579
-
580
-
581
- </div>
582
- </div>
583
- <div class="tags">
584
-
585
- <h3>Returns:</h3>
586
- <ul class="return">
587
-
588
- <li>
589
-
590
-
591
- <span class='type'>(<tt>Integer</tt>)</span>
592
-
593
-
594
-
595
- </li>
596
-
597
- </ul>
598
-
599
- </div><table class="source_code">
600
- <tr>
601
- <td>
602
- <pre class="lines">
603
-
604
-
605
- 31
606
- 32
607
- 33</pre>
608
- </td>
609
- <td>
610
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/series.rb', line 31</span>
611
-
612
- <span class='def def kw'>def</span> <span class='index identifier id'>index</span>
613
- <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>
614
- <span class='end end kw'>end</span>
615
- </pre>
616
- </td>
617
- </tr>
618
- </table>
619
- </div>
620
-
621
- <div class="method_details ">
622
- <p class="signature " id="order-instance_method">
623
-
624
- - (<tt>Integer</tt>) <strong>order</strong>
625
-
626
-
627
-
628
- </p><div class="docstring">
629
- <div class="discussion">
630
- <p>
631
- The order of this series in the chart&#8217;s series. By default the order
632
- is the index of the series.
633
- </p>
634
-
635
-
636
- </div>
637
- </div>
638
- <div class="tags">
639
-
640
- <h3>Returns:</h3>
641
- <ul class="return">
642
-
643
- <li>
644
-
645
-
646
- <span class='type'>(<tt>Integer</tt>)</span>
647
-
648
-
649
-
650
- </li>
651
-
652
- </ul>
653
-
654
- </div><table class="source_code">
655
- <tr>
656
- <td>
657
- <pre class="lines">
658
-
659
-
660
- 38
661
- 39
662
- 40</pre>
663
- </td>
664
- <td>
665
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/series.rb', line 38</span>
666
-
667
- <span class='def def kw'>def</span> <span class='order identifier id'>order</span>
668
- <span class='@order ivar id'>@order</span> <span class='orop op'>||</span> <span class='index identifier id'>index</span>
669
- <span class='end end kw'>end</span>
670
- </pre>
671
- </td>
672
- </tr>
673
- </table>
674
- </div>
675
-
676
- <div class="method_details ">
677
- <p class="signature " id="order=-instance_method">
678
-
679
- - (<tt>Object</tt>) <strong>order=</strong>(v)
680
-
681
-
682
-
683
- </p><div class="docstring">
684
- <div class="discussion">
685
-
686
-
687
- </div>
688
- </div>
689
- <div class="tags">
690
-
691
-
692
- <h3>See Also:</h3>
693
- <ul class="see">
694
-
695
- <li>order</li>
696
-
697
- </ul>
698
-
699
- </div><table class="source_code">
700
- <tr>
701
- <td>
702
- <pre class="lines">
703
-
704
-
705
- 43</pre>
706
- </td>
707
- <td>
708
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/series.rb', line 43</span>
709
-
710
- <span class='def def kw'>def</span> <span class='order= identifier id'>order=</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span> <span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='validate_unsigned_int identifier id'>validate_unsigned_int</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span><span class='semicolon token'>;</span> <span class='@order ivar id'>@order</span> <span class='assign token'>=</span> <span class='v identifier id'>v</span> <span class='end end kw'>end</span>
711
- </pre>
712
- </td>
713
- </tr>
714
- </table>
715
- </div>
716
-
717
- <div class="method_details ">
718
- <p class="signature " id="to_xml-instance_method">
719
-
720
- - (<tt>String</tt>) <strong>to_xml</strong>(xml)
721
-
722
-
723
-
724
- </p><div class="docstring">
725
- <div class="discussion">
726
- <p>
727
- Serializes the series
728
- </p>
729
-
730
-
731
- </div>
732
- </div>
733
- <div class="tags">
734
- <h3>Parameters:</h3>
735
- <ul class="param">
736
-
737
- <li>
738
-
739
- <span class='name'>xml</span>
740
-
741
-
742
- <span class='type'>(<tt>Nokogiri::XML::Builder</tt>)</span>
743
-
744
-
745
-
746
- &mdash;
747
- <div class='inline'><p>
748
- The document builder instance this objects xml will be added to.
749
- </p>
750
- </div>
751
-
752
- </li>
753
-
754
- </ul>
755
-
756
- <h3>Returns:</h3>
757
- <ul class="return">
758
-
759
- <li>
760
-
761
-
762
- <span class='type'>(<tt>String</tt>)</span>
763
-
764
-
765
-
766
- </li>
767
-
768
- </ul>
769
-
770
- </div><table class="source_code">
771
- <tr>
772
- <td>
773
- <pre class="lines">
774
-
775
-
776
- 60
777
- 61
778
- 62
779
- 63
780
- 64
781
- 65
782
- 66
783
- 67</pre>
784
- </td>
785
- <td>
786
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/series.rb', line 60</span>
787
-
788
- <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>
789
- <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>
790
- <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>
791
- <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>
792
- <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>
793
- <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>
794
- <span class='rbrace token'>}</span>
795
- <span class='end end kw'>end</span>
796
- </pre>
797
- </td>
798
- </tr>
799
- </table>
800
- </div>
801
-
802
- </div>
803
-
804
- </div>
805
-
806
- <div id="footer">
807
- Generated on Mon Dec 5 14:21:21 2011 by
808
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
809
- 0.7.3 (ruby-1.8.7).
810
- </div>
811
-
812
- </body>
813
- </html>