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,711 +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::BarSeries
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 (B)</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">BarSeries</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::BarSeries
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"><span class='object_link'><a href="Series.html" title="Axlsx::Series (class)">Series</a></span></span>
70
-
71
- <ul class="fullTree">
72
- <li>Object</li>
73
-
74
- <li class="next"><span class='object_link'><a href="Series.html" title="Axlsx::Series (class)">Series</a></span></li>
75
-
76
- <li class="next">Axlsx::BarSeries</li>
77
-
78
- </ul>
79
- <a href="#" class="inheritanceTree">show all</a>
80
-
81
- </dd>
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
- <dt class="r2 last">Defined in:</dt>
92
- <dd class="r2 last">lib/axlsx/drawing/bar_series.rb</dd>
93
-
94
- </dl>
95
- <div class="clear"></div>
96
-
97
- <h2>Overview</h2><div class="docstring">
98
- <div class="discussion">
99
-
100
- <div class="note notetag">
101
- <strong>Note:</strong>
102
- <div class='inline'><p>
103
- The recommended way to manage series is to use Chart#add_series
104
- </p>
105
- </div>
106
- </div>
107
-
108
- <p>
109
- A BarSeries defines the title, data and labels for bar charts
110
- </p>
111
-
112
-
113
- </div>
114
- </div>
115
- <div class="tags">
116
-
117
-
118
- <h3>See Also:</h3>
119
- <ul class="see">
120
-
121
- <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>
122
-
123
- <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>
124
-
125
- </ul>
126
-
127
- </div>
128
-
129
-
130
-
131
-
132
-
133
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
134
- <ul class="summary">
135
-
136
- <li class="public ">
137
- <span class="summary_signature">
138
-
139
- <a href="#data-instance_method" title="#data (instance method)">- (Array, SimpleTypedList) <strong>data</strong> </a>
140
-
141
-
142
-
143
- </span>
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
- <span class="summary_desc"><div class='inline'><p>
156
- The data for this series.
157
- </p>
158
- </div></span>
159
-
160
- </li>
161
-
162
-
163
- <li class="public ">
164
- <span class="summary_signature">
165
-
166
- <a href="#labels-instance_method" title="#labels (instance method)">- (Array, SimpleTypedList) <strong>labels</strong> </a>
167
-
168
-
169
-
170
- </span>
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
- <span class="summary_desc"><div class='inline'><p>
183
- The labels for this series.
184
- </p>
185
- </div></span>
186
-
187
- </li>
188
-
189
-
190
- <li class="public ">
191
- <span class="summary_signature">
192
-
193
- <a href="#shape-instance_method" title="#shape (instance method)">- (Symbol) <strong>shape</strong> </a>
194
-
195
-
196
-
197
- </span>
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
- <span class="summary_desc"><div class='inline'><p>
210
- The shabe of the bars or columns must be one of [:percentStacked,
211
- :clustered, :standard, :stacked].
212
- </p>
213
- </div></span>
214
-
215
- </li>
216
-
217
-
218
- </ul>
219
-
220
-
221
-
222
-
223
-
224
-
225
-
226
-
227
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Series.html" title="Axlsx::Series (class)">Series</a></span></h3>
228
- <p class="inherited"><span class='object_link'><a href="Series.html#chart-instance_method" title="Axlsx::Series#chart (method)">chart</a></span>, <span class='object_link'><a href="Series.html#title-instance_method" title="Axlsx::Series#title (method)">title</a></span></p>
229
-
230
-
231
-
232
- <h2>
233
- Instance Method Summary
234
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
235
- </h2>
236
-
237
- <ul class="summary">
238
-
239
- <li class="public ">
240
- <span class="summary_signature">
241
-
242
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (BarSeries) <strong>initialize</strong>(chart, options = {}) </a>
243
-
244
-
245
-
246
- </span>
247
-
248
- <span class="note title constructor">constructor</span>
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
-
257
- <span class="summary_desc"><div class='inline'><p>
258
- Creates a new series.
259
- </p>
260
- </div></span>
261
-
262
- </li>
263
-
264
-
265
- <li class="public ">
266
- <span class="summary_signature">
267
-
268
- <a href="#to_xml-instance_method" title="#to_xml (instance method)">- (String) <strong>to_xml</strong>(xml) </a>
269
-
270
-
271
-
272
- </span>
273
-
274
-
275
-
276
-
277
-
278
-
279
-
280
-
281
- <span class="summary_desc"><div class='inline'><p>
282
- Serializes the series.
283
- </p>
284
- </div></span>
285
-
286
- </li>
287
-
288
-
289
- </ul>
290
-
291
-
292
-
293
-
294
-
295
-
296
-
297
-
298
-
299
-
300
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Series.html" title="Axlsx::Series (class)">Series</a></span></h3>
301
- <p class="inherited"><span class='object_link'><a href="Series.html#index-instance_method" title="Axlsx::Series#index (method)">#index</a></span>, <span class='object_link'><a href="Series.html#order-instance_method" title="Axlsx::Series#order (method)">#order</a></span>, <span class='object_link'><a href="Series.html#order%3D-instance_method" title="Axlsx::Series#order= (method)">#order=</a></span></p>
302
- <div id="constructor_details" class="method_details_list">
303
- <h2>Constructor Details</h2>
304
-
305
- <div class="method_details first">
306
- <p class="signature first" id="initialize-instance_method">
307
-
308
- - (<tt><span class='object_link'><a href="" title="Axlsx::BarSeries (class)">BarSeries</a></span></tt>) <strong>initialize</strong>(chart, options = {})
309
-
310
-
311
-
312
- </p><div class="docstring">
313
- <div class="discussion">
314
- <p>
315
- Creates a new series
316
- </p>
317
-
318
-
319
- </div>
320
- </div>
321
- <div class="tags">
322
- <h3>Parameters:</h3>
323
- <ul class="param">
324
-
325
- <li>
326
-
327
- <span class='name'>chart</span>
328
-
329
-
330
- <span class='type'>(<tt><span class='object_link'><a href="Chart.html" title="Axlsx::Chart (class)">Chart</a></span></tt>)</span>
331
-
332
-
333
-
334
- </li>
335
-
336
- <li>
337
-
338
- <span class='name'>options</span>
339
-
340
-
341
- <span class='type'>(<tt>Hash</tt>)</span>
342
-
343
-
344
- <em class="default">(defaults to: <tt>{}</tt>)</em>
345
-
346
-
347
- &mdash;
348
- <div class='inline'><p>
349
- a customizable set of options
350
- </p>
351
- </div>
352
-
353
- </li>
354
-
355
- </ul>
356
-
357
-
358
-
359
-
360
-
361
-
362
- <h3>Options Hash (<tt>options</tt>):</h3>
363
- <ul class="option">
364
-
365
- <li>
366
- <span class="name">data</span>
367
- <span class="type">(<tt>Array</tt>, <tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>)</span>
368
- <span class="default">
369
-
370
- </span>
371
-
372
- </li>
373
-
374
- <li>
375
- <span class="name">labels</span>
376
- <span class="type">(<tt>Array</tt>, <tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>)</span>
377
- <span class="default">
378
-
379
- </span>
380
-
381
- </li>
382
-
383
- <li>
384
- <span class="name">title</span>
385
- <span class="type">(<tt>String</tt>)</span>
386
- <span class="default">
387
-
388
- </span>
389
-
390
- </li>
391
-
392
- <li>
393
- <span class="name">shape</span>
394
- <span class="type">(<tt>String</tt>)</span>
395
- <span class="default">
396
-
397
- </span>
398
-
399
- </li>
400
-
401
- </ul>
402
-
403
-
404
-
405
- </div><table class="source_code">
406
- <tr>
407
- <td>
408
- <pre class="lines">
409
-
410
-
411
- 28
412
- 29
413
- 30
414
- 31
415
- 32
416
- 33</pre>
417
- </td>
418
- <td>
419
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/bar_series.rb', line 28</span>
420
-
421
- <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>
422
- <span class='@shape ivar id'>@shape</span> <span class='assign token'>=</span> <span class='symbol val'>:box</span>
423
- <span class='super super kw'>super</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='rparen token'>)</span>
424
- <span class='self self kw'>self</span><span class='dot token'>.</span><span class='labels identifier id'>labels</span> <span class='assign token'>=</span> <span class='CatAxisData constant id'>CatAxisData</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:labels</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:labels</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
425
- <span class='self self kw'>self</span><span class='dot token'>.</span><span class='data identifier id'>data</span> <span class='assign token'>=</span> <span class='ValAxisData constant id'>ValAxisData</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:data</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:data</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
426
- <span class='end end kw'>end</span>
427
- </pre>
428
- </td>
429
- </tr>
430
- </table>
431
- </div>
432
-
433
- </div>
434
-
435
- <div id="instance_attr_details" class="attr_details">
436
- <h2>Instance Attribute Details</h2>
437
-
438
-
439
- <span id="data=-instance_method"></span>
440
- <span id="data-instance_method"></span>
441
- <div class="method_details first">
442
- <p class="signature first" id="data-instance_method">
443
-
444
- - (<tt>Array</tt>, <tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>) <strong>data</strong>
445
-
446
-
447
-
448
- </p><div class="docstring">
449
- <div class="discussion">
450
- <p>
451
- The data for this series.
452
- </p>
453
-
454
-
455
- </div>
456
- </div>
457
- <div class="tags">
458
-
459
- <h3>Returns:</h3>
460
- <ul class="return">
461
-
462
- <li>
463
-
464
-
465
- <span class='type'>(<tt>Array</tt>, <tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>)</span>
466
-
467
-
468
-
469
- </li>
470
-
471
- </ul>
472
-
473
- </div><table class="source_code">
474
- <tr>
475
- <td>
476
- <pre class="lines">
477
-
478
-
479
- 11
480
- 12
481
- 13</pre>
482
- </td>
483
- <td>
484
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/bar_series.rb', line 11</span>
485
-
486
- <span class='def def kw'>def</span> <span class='data identifier id'>data</span>
487
- <span class='@data ivar id'>@data</span>
488
- <span class='end end kw'>end</span>
489
- </pre>
490
- </td>
491
- </tr>
492
- </table>
493
- </div>
494
-
495
-
496
- <span id="labels=-instance_method"></span>
497
- <span id="labels-instance_method"></span>
498
- <div class="method_details ">
499
- <p class="signature " id="labels-instance_method">
500
-
501
- - (<tt>Array</tt>, <tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>) <strong>labels</strong>
502
-
503
-
504
-
505
- </p><div class="docstring">
506
- <div class="discussion">
507
- <p>
508
- The labels for this series.
509
- </p>
510
-
511
-
512
- </div>
513
- </div>
514
- <div class="tags">
515
-
516
- <h3>Returns:</h3>
517
- <ul class="return">
518
-
519
- <li>
520
-
521
-
522
- <span class='type'>(<tt>Array</tt>, <tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>)</span>
523
-
524
-
525
-
526
- </li>
527
-
528
- </ul>
529
-
530
- </div><table class="source_code">
531
- <tr>
532
- <td>
533
- <pre class="lines">
534
-
535
-
536
- 15
537
- 16
538
- 17</pre>
539
- </td>
540
- <td>
541
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/bar_series.rb', line 15</span>
542
-
543
- <span class='def def kw'>def</span> <span class='labels identifier id'>labels</span>
544
- <span class='@labels ivar id'>@labels</span>
545
- <span class='end end kw'>end</span>
546
- </pre>
547
- </td>
548
- </tr>
549
- </table>
550
- </div>
551
-
552
-
553
- <span id="shape=-instance_method"></span>
554
- <span id="shape-instance_method"></span>
555
- <div class="method_details ">
556
- <p class="signature " id="shape-instance_method">
557
-
558
- - (<tt>Symbol</tt>) <strong>shape</strong>
559
-
560
-
561
-
562
- </p><div class="docstring">
563
- <div class="discussion">
564
- <p>
565
- The shabe of the bars or columns must be one of [:percentStacked,
566
- :clustered, :standard, :stacked]
567
- </p>
568
-
569
-
570
- </div>
571
- </div>
572
- <div class="tags">
573
-
574
- <h3>Returns:</h3>
575
- <ul class="return">
576
-
577
- <li>
578
-
579
-
580
- <span class='type'>(<tt>Symbol</tt>)</span>
581
-
582
-
583
-
584
- </li>
585
-
586
- </ul>
587
-
588
- </div><table class="source_code">
589
- <tr>
590
- <td>
591
- <pre class="lines">
592
-
593
-
594
- 20
595
- 21
596
- 22</pre>
597
- </td>
598
- <td>
599
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/bar_series.rb', line 20</span>
600
-
601
- <span class='def def kw'>def</span> <span class='shape identifier id'>shape</span>
602
- <span class='@shape ivar id'>@shape</span>
603
- <span class='end end kw'>end</span>
604
- </pre>
605
- </td>
606
- </tr>
607
- </table>
608
- </div>
609
-
610
- </div>
611
-
612
-
613
- <div id="instance_method_details" class="method_details_list">
614
- <h2>Instance Method Details</h2>
615
-
616
-
617
- <div class="method_details first">
618
- <p class="signature first" id="to_xml-instance_method">
619
-
620
- - (<tt>String</tt>) <strong>to_xml</strong>(xml)
621
-
622
-
623
-
624
- </p><div class="docstring">
625
- <div class="discussion">
626
- <p>
627
- Serializes the series
628
- </p>
629
-
630
-
631
- </div>
632
- </div>
633
- <div class="tags">
634
- <h3>Parameters:</h3>
635
- <ul class="param">
636
-
637
- <li>
638
-
639
- <span class='name'>xml</span>
640
-
641
-
642
- <span class='type'>(<tt>Nokogiri::XML::Builder</tt>)</span>
643
-
644
-
645
-
646
- &mdash;
647
- <div class='inline'><p>
648
- The document builder instance this objects xml will be added to.
649
- </p>
650
- </div>
651
-
652
- </li>
653
-
654
- </ul>
655
-
656
- <h3>Returns:</h3>
657
- <ul class="return">
658
-
659
- <li>
660
-
661
-
662
- <span class='type'>(<tt>String</tt>)</span>
663
-
664
-
665
-
666
- </li>
667
-
668
- </ul>
669
-
670
- </div><table class="source_code">
671
- <tr>
672
- <td>
673
- <pre class="lines">
674
-
675
-
676
- 45
677
- 46
678
- 47
679
- 48
680
- 49
681
- 50
682
- 51</pre>
683
- </td>
684
- <td>
685
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/bar_series.rb', line 45</span>
686
-
687
- <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>
688
- <span class='super super kw'>super</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='xml_inner identifier id'>xml_inner</span><span class='bitor op'>|</span>
689
- <span class='@labels ivar id'>@labels</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml_inner identifier id'>xml_inner</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='@labels ivar id'>@labels</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
690
- <span class='@data ivar id'>@data</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml_inner identifier id'>xml_inner</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='@data ivar id'>@data</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
691
- <span class='xml_inner identifier id'>xml_inner</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:shape'</span><span class='comma token'>,</span> <span class='symbol val'>:val=</span><span class='gt op'>&gt;</span><span class='@shape ivar id'>@shape</span><span class='rparen token'>)</span>
692
- <span class='end end kw'>end</span>
693
- <span class='end end kw'>end</span>
694
- </pre>
695
- </td>
696
- </tr>
697
- </table>
698
- </div>
699
-
700
- </div>
701
-
702
- </div>
703
-
704
- <div id="footer">
705
- Generated on Mon Dec 5 14:21:21 2011 by
706
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
707
- 0.7.3 (ruby-1.8.7).
708
- </div>
709
-
710
- </body>
711
- </html>