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,1692 +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::Chart
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 (C)</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">Chart</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::Chart
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::Chart</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/chart.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
- Worksheet#add_chart is the recommended way to create charts for your
102
- worksheets.
103
- </p>
104
- </div>
105
- </div>
106
-
107
- <p>
108
- A Chart is the superclass for specific charts
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>for examples</li>
121
-
122
- </ul>
123
-
124
- </div><div id="subclasses">
125
- <h2>Direct Known Subclasses</h2>
126
- <p class="children"><span class='object_link'><a href="Bar3DChart.html" title="Axlsx::Bar3DChart (class)">Bar3DChart</a></span>, <span class='object_link'><a href="Line3DChart.html" title="Axlsx::Line3DChart (class)">Line3DChart</a></span>, <span class='object_link'><a href="Pie3DChart.html" title="Axlsx::Pie3DChart (class)">Pie3DChart</a></span></p>
127
- </div>
128
-
129
-
130
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
131
- <ul class="summary">
132
-
133
- <li class="public ">
134
- <span class="summary_signature">
135
-
136
- <a href="#graphic_frame-instance_method" title="#graphic_frame (instance method)">- (GraphicFrame) <strong>graphic_frame</strong> </a>
137
-
138
-
139
-
140
- </span>
141
-
142
-
143
- <span class="note title readonly">readonly</span>
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
- <span class="summary_desc"><div class='inline'><p>
153
- A reference to the graphic frame that owns this chart.
154
- </p>
155
- </div></span>
156
-
157
- </li>
158
-
159
-
160
- <li class="public ">
161
- <span class="summary_signature">
162
-
163
- <a href="#series-instance_method" title="#series (instance method)">- (SimpleTypedList) <strong>series</strong> </a>
164
-
165
-
166
-
167
- </span>
168
-
169
-
170
- <span class="note title readonly">readonly</span>
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
- <span class="summary_desc"><div class='inline'><p>
180
- A collection of series objects that are applied to the chart.
181
- </p>
182
- </div></span>
183
-
184
- </li>
185
-
186
-
187
- <li class="public ">
188
- <span class="summary_signature">
189
-
190
- <a href="#series_type-instance_method" title="#series_type (instance method)">- (Series) <strong>series_type</strong> </a>
191
-
192
-
193
-
194
- </span>
195
-
196
-
197
- <span class="note title readonly">readonly</span>
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
- <span class="summary_desc"><div class='inline'><p>
207
- The type of series to use for this chart.
208
- </p>
209
- </div></span>
210
-
211
- </li>
212
-
213
-
214
- <li class="public ">
215
- <span class="summary_signature">
216
-
217
- <a href="#show_legend-instance_method" title="#show_legend (instance method)">- (Boolean) <strong>show_legend</strong> </a>
218
-
219
-
220
-
221
- </span>
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
- <span class="summary_desc"><div class='inline'><p>
234
- Show the legend in the chart.
235
- </p>
236
- </div></span>
237
-
238
- </li>
239
-
240
-
241
- <li class="public ">
242
- <span class="summary_signature">
243
-
244
- <a href="#style-instance_method" title="#style (instance method)">- (Integer) <strong>style</strong> </a>
245
-
246
-
247
-
248
- </span>
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
- <span class="summary_desc"><div class='inline'><p>
261
- The style for the chart.
262
- </p>
263
- </div></span>
264
-
265
- </li>
266
-
267
-
268
- <li class="public ">
269
- <span class="summary_signature">
270
-
271
- <a href="#title-instance_method" title="#title (instance method)">- (Title) <strong>title</strong> </a>
272
-
273
-
274
-
275
- </span>
276
-
277
-
278
-
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
-
287
- <span class="summary_desc"><div class='inline'><p>
288
- The title object for the chart.
289
- </p>
290
- </div></span>
291
-
292
- </li>
293
-
294
-
295
- <li class="public ">
296
- <span class="summary_signature">
297
-
298
- <a href="#view3D-instance_method" title="#view3D (instance method)">- (Object) <strong>view3D</strong> </a>
299
-
300
-
301
-
302
- </span>
303
-
304
-
305
-
306
-
307
-
308
-
309
-
310
-
311
-
312
-
313
-
314
- <span class="summary_desc"><div class='inline'><p>
315
- The 3D view properties for the chart.
316
- </p>
317
- </div></span>
318
-
319
- </li>
320
-
321
-
322
- </ul>
323
-
324
-
325
-
326
-
327
-
328
- <h2>
329
- Instance Method Summary
330
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
331
- </h2>
332
-
333
- <ul class="summary">
334
-
335
- <li class="public ">
336
- <span class="summary_signature">
337
-
338
- <a href="#add_series-instance_method" title="#add_series (instance method)">- (Series) <strong>add_series</strong>(options = {}) </a>
339
-
340
-
341
-
342
- </span>
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
-
351
- <span class="summary_desc"><div class='inline'><p>
352
- Adds a new series to the chart&#8217;s series collection.
353
- </p>
354
- </div></span>
355
-
356
- </li>
357
-
358
-
359
- <li class="public ">
360
- <span class="summary_signature">
361
-
362
- <a href="#end_at-instance_method" title="#end_at (instance method)">- (Marker) <strong>end_at</strong>(x, y = 0) </a>
363
-
364
-
365
-
366
- </span>
367
-
368
-
369
-
370
-
371
-
372
-
373
-
374
-
375
- <span class="summary_desc"><div class='inline'><p>
376
- This is a short cut method to set the end anchor position If you need finer
377
- granularity in positioning use graphic_frame.anchor.to.colOff / rowOff.
378
- </p>
379
- </div></span>
380
-
381
- </li>
382
-
383
-
384
- <li class="public ">
385
- <span class="summary_signature">
386
-
387
- <a href="#from-instance_method" title="#from (instance method)">- (Object) <strong>from</strong> </a>
388
-
389
-
390
-
391
- </span>
392
-
393
-
394
-
395
-
396
-
397
-
398
-
399
-
400
- <span class="summary_desc"><div class='inline'><p>
401
- backwards compatibility to allow chart.to and chart.from access to anchor
402
- markers.
403
- </p>
404
- </div></span>
405
-
406
- </li>
407
-
408
-
409
- <li class="public ">
410
- <span class="summary_signature">
411
-
412
- <a href="#index-instance_method" title="#index (instance method)">- (Integer) <strong>index</strong> </a>
413
-
414
-
415
-
416
- </span>
417
-
418
-
419
-
420
-
421
-
422
-
423
-
424
-
425
- <span class="summary_desc"><div class='inline'><p>
426
- The index of this chart in the workbooks charts collection.
427
- </p>
428
- </div></span>
429
-
430
- </li>
431
-
432
-
433
- <li class="public ">
434
- <span class="summary_signature">
435
-
436
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Chart) <strong>initialize</strong>(frame, options = {}) {|_self| ... }</a>
437
-
438
-
439
-
440
- </span>
441
-
442
- <span class="note title constructor">constructor</span>
443
-
444
-
445
-
446
-
447
-
448
-
449
-
450
-
451
- <span class="summary_desc"><div class='inline'><p>
452
- Creates a new chart object.
453
- </p>
454
- </div></span>
455
-
456
- </li>
457
-
458
-
459
- <li class="public ">
460
- <span class="summary_signature">
461
-
462
- <a href="#pn-instance_method" title="#pn (instance method)">- (String) <strong>pn</strong> </a>
463
-
464
-
465
-
466
- </span>
467
-
468
-
469
-
470
-
471
-
472
-
473
-
474
-
475
- <span class="summary_desc"><div class='inline'><p>
476
- The part name for this chart.
477
- </p>
478
- </div></span>
479
-
480
- </li>
481
-
482
-
483
- <li class="public ">
484
- <span class="summary_signature">
485
-
486
- <a href="#start_at-instance_method" title="#start_at (instance method)">- (Marker) <strong>start_at</strong>(x, y = 0) </a>
487
-
488
-
489
-
490
- </span>
491
-
492
-
493
-
494
-
495
-
496
-
497
-
498
-
499
- <span class="summary_desc"><div class='inline'><p>
500
- This is a short cut method to set the start anchor position If you need
501
- finer granularity in positioning use graphic_frame.anchor.from.colOff /
502
- rowOff.
503
- </p>
504
- </div></span>
505
-
506
- </li>
507
-
508
-
509
- <li class="public ">
510
- <span class="summary_signature">
511
-
512
- <a href="#to-instance_method" title="#to (instance method)">- (Object) <strong>to</strong> </a>
513
-
514
-
515
-
516
- </span>
517
-
518
-
519
-
520
-
521
-
522
-
523
-
524
-
525
- <span class="summary_desc"><div class='inline'><p>
526
- backwards compatibility to allow chart.to and chart.from access to anchor
527
- markers.
528
- </p>
529
- </div></span>
530
-
531
- </li>
532
-
533
-
534
- <li class="public ">
535
- <span class="summary_signature">
536
-
537
- <a href="#to_xml-instance_method" title="#to_xml (instance method)">- (Object) <strong>to_xml</strong> </a>
538
-
539
-
540
-
541
- </span>
542
-
543
-
544
-
545
-
546
-
547
-
548
-
549
-
550
- <span class="summary_desc"><div class='inline'><p>
551
- Chart Serialization serializes the chart.
552
- </p>
553
- </div></span>
554
-
555
- </li>
556
-
557
-
558
- </ul>
559
-
560
-
561
- <div id="constructor_details" class="method_details_list">
562
- <h2>Constructor Details</h2>
563
-
564
- <div class="method_details first">
565
- <p class="signature first" id="initialize-instance_method">
566
-
567
- - (<tt><span class='object_link'><a href="" title="Axlsx::Chart (class)">Chart</a></span></tt>) <strong>initialize</strong>(frame, options = {}) {|_self| ... }
568
-
569
-
570
-
571
- </p><div class="docstring">
572
- <div class="discussion">
573
- <p>
574
- Creates a new chart object
575
- </p>
576
-
577
-
578
- </div>
579
- </div>
580
- <div class="tags">
581
- <h3>Parameters:</h3>
582
- <ul class="param">
583
-
584
- <li>
585
-
586
- <span class='name'>frame</span>
587
-
588
-
589
- <span class='type'>(<tt>GraphicalFrame</tt>)</span>
590
-
591
-
592
-
593
- &mdash;
594
- <div class='inline'><p>
595
- The frame that holds this chart.
596
- </p>
597
- </div>
598
-
599
- </li>
600
-
601
- <li>
602
-
603
- <span class='name'>options</span>
604
-
605
-
606
- <span class='type'>(<tt>Hash</tt>)</span>
607
-
608
-
609
- <em class="default">(defaults to: <tt>{}</tt>)</em>
610
-
611
-
612
- &mdash;
613
- <div class='inline'><p>
614
- a customizable set of options
615
- </p>
616
- </div>
617
-
618
- </li>
619
-
620
- </ul>
621
-
622
-
623
-
624
-
625
-
626
-
627
- <h3>Options Hash (<tt>options</tt>):</h3>
628
- <ul class="option">
629
-
630
- <li>
631
- <span class="name">title</span>
632
- <span class="type">(<tt><span class='object_link'><a href="Cell.html" title="Axlsx::Cell (class)">Cell</a></span></tt>, <tt>String</tt>)</span>
633
- <span class="default">
634
-
635
- </span>
636
-
637
- </li>
638
-
639
- <li>
640
- <span class="name">show_legend</span>
641
- <span class="type">(<tt>Boolean</tt>)</span>
642
- <span class="default">
643
-
644
- </span>
645
-
646
- </li>
647
-
648
- </ul>
649
-
650
-
651
- <h3>Yields:</h3>
652
- <ul class="yield">
653
-
654
- <li>
655
-
656
-
657
- <span class='type'>(<tt>_self</tt>)</span>
658
-
659
-
660
-
661
- </li>
662
-
663
- </ul>
664
- <h3>Yield Parameters:</h3>
665
- <ul class="yieldparam">
666
-
667
- <li>
668
-
669
- <span class='name'>_self</span>
670
-
671
-
672
- <span class='type'>(<tt><span class='object_link'><a href="" title="Axlsx::Chart (class)">Axlsx::Chart</a></span></tt>)</span>
673
-
674
-
675
-
676
- &mdash;
677
- <div class='inline'><p>
678
- the object that the method was called on
679
- </p>
680
- </div>
681
-
682
- </li>
683
-
684
- </ul>
685
-
686
- </div><table class="source_code">
687
- <tr>
688
- <td>
689
- <pre class="lines">
690
-
691
-
692
- 44
693
- 45
694
- 46
695
- 47
696
- 48
697
- 49
698
- 50
699
- 51
700
- 52
701
- 53
702
- 54
703
- 55
704
- 56
705
- 57</pre>
706
- </td>
707
- <td>
708
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 44</span>
709
-
710
- <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='frame identifier id'>frame</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>
711
- <span class='@style ivar id'>@style</span> <span class='assign token'>=</span> <span class='integer val'>2</span>
712
- <span class='@graphic_frame ivar id'>@graphic_frame</span><span class='assign token'>=</span><span class='frame identifier id'>frame</span>
713
- <span class='@graphic_frame ivar id'>@graphic_frame</span><span class='dot token'>.</span><span class='anchor identifier id'>anchor</span><span class='dot token'>.</span><span class='drawing identifier id'>drawing</span><span class='dot token'>.</span><span class='worksheet identifier id'>worksheet</span><span class='dot token'>.</span><span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='charts identifier id'>charts</span> <span class='lshft op'>&lt;&lt;</span> <span class='self self kw'>self</span>
714
- <span class='@series ivar id'>@series</span> <span class='assign token'>=</span> <span class='SimpleTypedList constant id'>SimpleTypedList</span><span class='dot token'>.</span><span class='new identifier id'>new</span> <span class='Series constant id'>Series</span>
715
- <span class='@show_legend ivar id'>@show_legend</span> <span class='assign token'>=</span> <span class='true true kw'>true</span>
716
- <span class='@series_type ivar id'>@series_type</span> <span class='assign token'>=</span> <span class='Series constant id'>Series</span>
717
- <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>
718
- <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>
719
- <span class='end end kw'>end</span>
720
- <span class='start_at identifier id'>start_at</span> <span class='mult op'>*</span><span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:start_at</span><span class='rbrack token'>]</span> <span class='if if_mod kw'>if</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:start_at</span><span class='rbrack token'>]</span>
721
- <span class='end_at identifier id'>end_at</span> <span class='mult op'>*</span><span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:end_at</span><span class='rbrack token'>]</span> <span class='if if_mod kw'>if</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:start_at</span><span class='rbrack token'>]</span>
722
- <span class='yield yield kw'>yield</span> <span class='self self kw'>self</span> <span class='if if_mod kw'>if</span> <span class='block_given? fid id'>block_given?</span>
723
- <span class='end end kw'>end</span>
724
- </pre>
725
- </td>
726
- </tr>
727
- </table>
728
- </div>
729
-
730
- </div>
731
-
732
- <div id="instance_attr_details" class="attr_details">
733
- <h2>Instance Attribute Details</h2>
734
-
735
-
736
- <span id=""></span>
737
- <span id="graphic_frame-instance_method"></span>
738
- <div class="method_details first">
739
- <p class="signature first" id="graphic_frame-instance_method">
740
-
741
- - (<tt><span class='object_link'><a href="GraphicFrame.html" title="Axlsx::GraphicFrame (class)">GraphicFrame</a></span></tt>) <strong>graphic_frame</strong> <span class="extras">(readonly)</span>
742
-
743
-
744
-
745
- </p><div class="docstring">
746
- <div class="discussion">
747
- <p>
748
- A reference to the graphic frame that owns this chart
749
- </p>
750
-
751
-
752
- </div>
753
- </div>
754
- <div class="tags">
755
-
756
- <h3>Returns:</h3>
757
- <ul class="return">
758
-
759
- <li>
760
-
761
-
762
- <span class='type'>(<tt><span class='object_link'><a href="GraphicFrame.html" title="Axlsx::GraphicFrame (class)">GraphicFrame</a></span></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
- 14
777
- 15
778
- 16</pre>
779
- </td>
780
- <td>
781
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 14</span>
782
-
783
- <span class='def def kw'>def</span> <span class='graphic_frame identifier id'>graphic_frame</span>
784
- <span class='@graphic_frame ivar id'>@graphic_frame</span>
785
- <span class='end end kw'>end</span>
786
- </pre>
787
- </td>
788
- </tr>
789
- </table>
790
- </div>
791
-
792
-
793
- <span id=""></span>
794
- <span id="series-instance_method"></span>
795
- <div class="method_details ">
796
- <p class="signature " id="series-instance_method">
797
-
798
- - (<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>) <strong>series</strong> <span class="extras">(readonly)</span>
799
-
800
-
801
-
802
- </p><div class="docstring">
803
- <div class="discussion">
804
- <p>
805
- A collection of series objects that are applied to the chart
806
- </p>
807
-
808
-
809
- </div>
810
- </div>
811
- <div class="tags">
812
-
813
- <h3>Returns:</h3>
814
- <ul class="return">
815
-
816
- <li>
817
-
818
-
819
- <span class='type'>(<tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>)</span>
820
-
821
-
822
-
823
- </li>
824
-
825
- </ul>
826
-
827
- </div><table class="source_code">
828
- <tr>
829
- <td>
830
- <pre class="lines">
831
-
832
-
833
- 18
834
- 19
835
- 20</pre>
836
- </td>
837
- <td>
838
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 18</span>
839
-
840
- <span class='def def kw'>def</span> <span class='series identifier id'>series</span>
841
- <span class='@series ivar id'>@series</span>
842
- <span class='end end kw'>end</span>
843
- </pre>
844
- </td>
845
- </tr>
846
- </table>
847
- </div>
848
-
849
-
850
- <span id=""></span>
851
- <span id="series_type-instance_method"></span>
852
- <div class="method_details ">
853
- <p class="signature " id="series_type-instance_method">
854
-
855
- - (<tt><span class='object_link'><a href="Series.html" title="Axlsx::Series (class)">Series</a></span></tt>) <strong>series_type</strong> <span class="extras">(readonly)</span>
856
-
857
-
858
-
859
- </p><div class="docstring">
860
- <div class="discussion">
861
- <p>
862
- The type of series to use for this chart.
863
- </p>
864
-
865
-
866
- </div>
867
- </div>
868
- <div class="tags">
869
-
870
- <h3>Returns:</h3>
871
- <ul class="return">
872
-
873
- <li>
874
-
875
-
876
- <span class='type'>(<tt><span class='object_link'><a href="Series.html" title="Axlsx::Series (class)">Series</a></span></tt>)</span>
877
-
878
-
879
-
880
- </li>
881
-
882
- </ul>
883
-
884
- </div><table class="source_code">
885
- <tr>
886
- <td>
887
- <pre class="lines">
888
-
889
-
890
- 22
891
- 23
892
- 24</pre>
893
- </td>
894
- <td>
895
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 22</span>
896
-
897
- <span class='def def kw'>def</span> <span class='series_type identifier id'>series_type</span>
898
- <span class='@series_type ivar id'>@series_type</span>
899
- <span class='end end kw'>end</span>
900
- </pre>
901
- </td>
902
- </tr>
903
- </table>
904
- </div>
905
-
906
-
907
- <span id="show_legend=-instance_method"></span>
908
- <span id="show_legend-instance_method"></span>
909
- <div class="method_details ">
910
- <p class="signature " id="show_legend-instance_method">
911
-
912
- - (<tt>Boolean</tt>) <strong>show_legend</strong>
913
-
914
-
915
-
916
- </p><div class="docstring">
917
- <div class="discussion">
918
- <p>
919
- Show the legend in the chart
920
- </p>
921
-
922
-
923
- </div>
924
- </div>
925
- <div class="tags">
926
-
927
- <h3>Returns:</h3>
928
- <ul class="return">
929
-
930
- <li>
931
-
932
-
933
- <span class='type'>(<tt>Boolean</tt>)</span>
934
-
935
-
936
-
937
- </li>
938
-
939
- </ul>
940
-
941
- </div><table class="source_code">
942
- <tr>
943
- <td>
944
- <pre class="lines">
945
-
946
-
947
- 38
948
- 39
949
- 40</pre>
950
- </td>
951
- <td>
952
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 38</span>
953
-
954
- <span class='def def kw'>def</span> <span class='show_legend identifier id'>show_legend</span>
955
- <span class='@show_legend ivar id'>@show_legend</span>
956
- <span class='end end kw'>end</span>
957
- </pre>
958
- </td>
959
- </tr>
960
- </table>
961
- </div>
962
-
963
-
964
- <span id="style=-instance_method"></span>
965
- <span id="style-instance_method"></span>
966
- <div class="method_details ">
967
- <p class="signature " id="style-instance_method">
968
-
969
- - (<tt>Integer</tt>) <strong>style</strong>
970
-
971
-
972
-
973
- </p><div class="docstring">
974
- <div class="discussion">
975
- <p>
976
- The style for the chart. see ECMA Part 1 §21.2.2.196
977
- </p>
978
-
979
-
980
- </div>
981
- </div>
982
- <div class="tags">
983
-
984
- <h3>Returns:</h3>
985
- <ul class="return">
986
-
987
- <li>
988
-
989
-
990
- <span class='type'>(<tt>Integer</tt>)</span>
991
-
992
-
993
-
994
- </li>
995
-
996
- </ul>
997
-
998
- </div><table class="source_code">
999
- <tr>
1000
- <td>
1001
- <pre class="lines">
1002
-
1003
-
1004
- 34
1005
- 35
1006
- 36</pre>
1007
- </td>
1008
- <td>
1009
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 34</span>
1010
-
1011
- <span class='def def kw'>def</span> <span class='style identifier id'>style</span>
1012
- <span class='@style ivar id'>@style</span>
1013
- <span class='end end kw'>end</span>
1014
- </pre>
1015
- </td>
1016
- </tr>
1017
- </table>
1018
- </div>
1019
-
1020
-
1021
- <span id="title=-instance_method"></span>
1022
- <span id="title-instance_method"></span>
1023
- <div class="method_details ">
1024
- <p class="signature " id="title-instance_method">
1025
-
1026
- - (<tt><span class='object_link'><a href="Title.html" title="Axlsx::Title (class)">Title</a></span></tt>) <strong>title</strong>
1027
-
1028
-
1029
-
1030
- </p><div class="docstring">
1031
- <div class="discussion">
1032
- <p>
1033
- The title object for the chart.
1034
- </p>
1035
-
1036
-
1037
- </div>
1038
- </div>
1039
- <div class="tags">
1040
-
1041
- <h3>Returns:</h3>
1042
- <ul class="return">
1043
-
1044
- <li>
1045
-
1046
-
1047
- <span class='type'>(<tt><span class='object_link'><a href="Title.html" title="Axlsx::Title (class)">Title</a></span></tt>)</span>
1048
-
1049
-
1050
-
1051
- </li>
1052
-
1053
- </ul>
1054
-
1055
- </div><table class="source_code">
1056
- <tr>
1057
- <td>
1058
- <pre class="lines">
1059
-
1060
-
1061
- 29
1062
- 30
1063
- 31</pre>
1064
- </td>
1065
- <td>
1066
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 29</span>
1067
-
1068
- <span class='def def kw'>def</span> <span class='title identifier id'>title</span>
1069
- <span class='@title ivar id'>@title</span>
1070
- <span class='end end kw'>end</span>
1071
- </pre>
1072
- </td>
1073
- </tr>
1074
- </table>
1075
- </div>
1076
-
1077
-
1078
- <span id="view3D=-instance_method"></span>
1079
- <span id="view3D-instance_method"></span>
1080
- <div class="method_details ">
1081
- <p class="signature " id="view3D-instance_method">
1082
-
1083
- - (<tt>Object</tt>) <strong>view3D</strong>
1084
-
1085
-
1086
-
1087
- </p><div class="docstring">
1088
- <div class="discussion">
1089
- <p>
1090
- The 3D view properties for the chart
1091
- </p>
1092
-
1093
-
1094
- </div>
1095
- </div>
1096
- <div class="tags">
1097
-
1098
-
1099
- </div><table class="source_code">
1100
- <tr>
1101
- <td>
1102
- <pre class="lines">
1103
-
1104
-
1105
- 10
1106
- 11
1107
- 12</pre>
1108
- </td>
1109
- <td>
1110
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 10</span>
1111
-
1112
- <span class='def def kw'>def</span> <span class='view3D identifier id'>view3D</span>
1113
- <span class='@view3D ivar id'>@view3D</span>
1114
- <span class='end end kw'>end</span>
1115
- </pre>
1116
- </td>
1117
- </tr>
1118
- </table>
1119
- </div>
1120
-
1121
- </div>
1122
-
1123
-
1124
- <div id="instance_method_details" class="method_details_list">
1125
- <h2>Instance Method Details</h2>
1126
-
1127
-
1128
- <div class="method_details first">
1129
- <p class="signature first" id="add_series-instance_method">
1130
-
1131
- - (<tt><span class='object_link'><a href="Series.html" title="Axlsx::Series (class)">Series</a></span></tt>) <strong>add_series</strong>(options = {})
1132
-
1133
-
1134
-
1135
- </p><div class="docstring">
1136
- <div class="discussion">
1137
- <p>
1138
- Adds a new series to the chart&#8217;s series collection.
1139
- </p>
1140
-
1141
-
1142
- </div>
1143
- </div>
1144
- <div class="tags">
1145
-
1146
- <h3>Returns:</h3>
1147
- <ul class="return">
1148
-
1149
- <li>
1150
-
1151
-
1152
- <span class='type'>(<tt><span class='object_link'><a href="Series.html" title="Axlsx::Series (class)">Series</a></span></tt>)</span>
1153
-
1154
-
1155
-
1156
- </li>
1157
-
1158
- </ul>
1159
-
1160
- <h3>See Also:</h3>
1161
- <ul class="see">
1162
-
1163
- <li><span class='object_link'><a href="Series.html" title="Axlsx::Series (class)">Series</a></span></li>
1164
-
1165
- </ul>
1166
-
1167
- </div><table class="source_code">
1168
- <tr>
1169
- <td>
1170
- <pre class="lines">
1171
-
1172
-
1173
- 106
1174
- 107
1175
- 108
1176
- 109</pre>
1177
- </td>
1178
- <td>
1179
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 106</span>
1180
-
1181
- <span class='def def kw'>def</span> <span class='add_series identifier id'>add_series</span><span class='lparen 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>
1182
- <span class='@series_type ivar id'>@series_type</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span>
1183
- <span class='@series ivar id'>@series</span><span class='dot token'>.</span><span class='last identifier id'>last</span>
1184
- <span class='end end kw'>end</span>
1185
- </pre>
1186
- </td>
1187
- </tr>
1188
- </table>
1189
- </div>
1190
-
1191
- <div class="method_details ">
1192
- <p class="signature " id="end_at-instance_method">
1193
-
1194
- - (<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>) <strong>end_at</strong>(x, y = 0)
1195
-
1196
-
1197
-
1198
- </p><div class="docstring">
1199
- <div class="discussion">
1200
- <p>
1201
- This is a short cut method to set the end anchor position If you need finer
1202
- granularity in positioning use graphic_frame.anchor.to.colOff / rowOff
1203
- </p>
1204
-
1205
-
1206
- </div>
1207
- </div>
1208
- <div class="tags">
1209
- <h3>Parameters:</h3>
1210
- <ul class="param">
1211
-
1212
- <li>
1213
-
1214
- <span class='name'>x</span>
1215
-
1216
-
1217
- <span class='type'>(<tt>Integer</tt>)</span>
1218
-
1219
-
1220
-
1221
- &mdash;
1222
- <div class='inline'><p>
1223
- The column
1224
- </p>
1225
- </div>
1226
-
1227
- </li>
1228
-
1229
- <li>
1230
-
1231
- <span class='name'>y</span>
1232
-
1233
-
1234
- <span class='type'>(<tt>Integer</tt>)</span>
1235
-
1236
-
1237
- <em class="default">(defaults to: <tt>0</tt>)</em>
1238
-
1239
-
1240
- &mdash;
1241
- <div class='inline'><p>
1242
- The row
1243
- </p>
1244
- </div>
1245
-
1246
- </li>
1247
-
1248
- </ul>
1249
-
1250
- <h3>Returns:</h3>
1251
- <ul class="return">
1252
-
1253
- <li>
1254
-
1255
-
1256
- <span class='type'>(<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>)</span>
1257
-
1258
-
1259
-
1260
- </li>
1261
-
1262
- </ul>
1263
-
1264
- </div><table class="source_code">
1265
- <tr>
1266
- <td>
1267
- <pre class="lines">
1268
-
1269
-
1270
- 155
1271
- 156
1272
- 157
1273
- 158
1274
- 159</pre>
1275
- </td>
1276
- <td>
1277
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 155</span>
1278
-
1279
- <span class='def def kw'>def</span> <span class='end_at identifier id'>end_at</span><span class='lparen token'>(</span><span class='x identifier id'>x</span><span class='comma token'>,</span> <span class='y identifier id'>y</span><span class='assign token'>=</span><span class='integer val'>0</span><span class='rparen token'>)</span>
1280
- <span class='x identifier id'>x</span><span class='comma token'>,</span> <span class='y identifier id'>y</span> <span class='assign token'>=</span> <span class='mult op'>*</span><span class='parse_coord_args identifier id'>parse_coord_args</span><span class='lparen token'>(</span><span class='x identifier id'>x</span><span class='comma token'>,</span> <span class='y identifier id'>y</span><span class='rparen token'>)</span>
1281
- <span class='@graphic_frame ivar id'>@graphic_frame</span><span class='dot token'>.</span><span class='anchor identifier id'>anchor</span><span class='dot token'>.</span><span class='to identifier id'>to</span><span class='dot token'>.</span><span class='col identifier id'>col</span> <span class='assign token'>=</span> <span class='x identifier id'>x</span>
1282
- <span class='@graphic_frame ivar id'>@graphic_frame</span><span class='dot token'>.</span><span class='anchor identifier id'>anchor</span><span class='dot token'>.</span><span class='to identifier id'>to</span><span class='dot token'>.</span><span class='row identifier id'>row</span> <span class='assign token'>=</span> <span class='y identifier id'>y</span>
1283
- <span class='end end kw'>end</span>
1284
- </pre>
1285
- </td>
1286
- </tr>
1287
- </table>
1288
- </div>
1289
-
1290
- <div class="method_details ">
1291
- <p class="signature " id="from-instance_method">
1292
-
1293
- - (<tt>Object</tt>) <strong>from</strong>
1294
-
1295
-
1296
-
1297
- </p><div class="docstring">
1298
- <div class="discussion">
1299
-
1300
- <div class="note notetag">
1301
- <strong>Note:</strong>
1302
- <div class='inline'><p>
1303
- This will be disconinued in version 2.0.0. please use the start_at method
1304
- </p>
1305
- </div>
1306
- </div>
1307
-
1308
- <p>
1309
- backwards compatibility to allow chart.to and chart.from access to anchor
1310
- markers
1311
- </p>
1312
-
1313
-
1314
- </div>
1315
- </div>
1316
- <div class="tags">
1317
-
1318
-
1319
- </div><table class="source_code">
1320
- <tr>
1321
- <td>
1322
- <pre class="lines">
1323
-
1324
-
1325
- 99
1326
- 100
1327
- 101</pre>
1328
- </td>
1329
- <td>
1330
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 99</span>
1331
-
1332
- <span class='def def kw'>def</span> <span class='from identifier id'>from</span>
1333
- <span class='@graphic_frame ivar id'>@graphic_frame</span><span class='dot token'>.</span><span class='anchor identifier id'>anchor</span><span class='dot token'>.</span><span class='from identifier id'>from</span>
1334
- <span class='end end kw'>end</span>
1335
- </pre>
1336
- </td>
1337
- </tr>
1338
- </table>
1339
- </div>
1340
-
1341
- <div class="method_details ">
1342
- <p class="signature " id="index-instance_method">
1343
-
1344
- - (<tt>Integer</tt>) <strong>index</strong>
1345
-
1346
-
1347
-
1348
- </p><div class="docstring">
1349
- <div class="discussion">
1350
- <p>
1351
- The index of this chart in the workbooks charts collection
1352
- </p>
1353
-
1354
-
1355
- </div>
1356
- </div>
1357
- <div class="tags">
1358
-
1359
- <h3>Returns:</h3>
1360
- <ul class="return">
1361
-
1362
- <li>
1363
-
1364
-
1365
- <span class='type'>(<tt>Integer</tt>)</span>
1366
-
1367
-
1368
-
1369
- </li>
1370
-
1371
- </ul>
1372
-
1373
- </div><table class="source_code">
1374
- <tr>
1375
- <td>
1376
- <pre class="lines">
1377
-
1378
-
1379
- 61
1380
- 62
1381
- 63</pre>
1382
- </td>
1383
- <td>
1384
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 61</span>
1385
-
1386
- <span class='def def kw'>def</span> <span class='index identifier id'>index</span>
1387
- <span class='@graphic_frame ivar id'>@graphic_frame</span><span class='dot token'>.</span><span class='anchor identifier id'>anchor</span><span class='dot token'>.</span><span class='drawing identifier id'>drawing</span><span class='dot token'>.</span><span class='worksheet identifier id'>worksheet</span><span class='dot token'>.</span><span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='charts identifier id'>charts</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>
1388
- <span class='end end kw'>end</span>
1389
- </pre>
1390
- </td>
1391
- </tr>
1392
- </table>
1393
- </div>
1394
-
1395
- <div class="method_details ">
1396
- <p class="signature " id="pn-instance_method">
1397
-
1398
- - (<tt>String</tt>) <strong>pn</strong>
1399
-
1400
-
1401
-
1402
- </p><div class="docstring">
1403
- <div class="discussion">
1404
- <p>
1405
- The part name for this chart
1406
- </p>
1407
-
1408
-
1409
- </div>
1410
- </div>
1411
- <div class="tags">
1412
-
1413
- <h3>Returns:</h3>
1414
- <ul class="return">
1415
-
1416
- <li>
1417
-
1418
-
1419
- <span class='type'>(<tt>String</tt>)</span>
1420
-
1421
-
1422
-
1423
- </li>
1424
-
1425
- </ul>
1426
-
1427
- </div><table class="source_code">
1428
- <tr>
1429
- <td>
1430
- <pre class="lines">
1431
-
1432
-
1433
- 67
1434
- 68
1435
- 69</pre>
1436
- </td>
1437
- <td>
1438
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 67</span>
1439
-
1440
- <span class='def def kw'>def</span> <span class='pn identifier id'>pn</span>
1441
- <span class='dstring node'>&quot;#{CHART_PN % (index+1)}&quot;</span>
1442
- <span class='end end kw'>end</span>
1443
- </pre>
1444
- </td>
1445
- </tr>
1446
- </table>
1447
- </div>
1448
-
1449
- <div class="method_details ">
1450
- <p class="signature " id="start_at-instance_method">
1451
-
1452
- - (<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>) <strong>start_at</strong>(x, y = 0)
1453
-
1454
-
1455
-
1456
- </p><div class="docstring">
1457
- <div class="discussion">
1458
- <p>
1459
- This is a short cut method to set the start anchor position If you need
1460
- finer granularity in positioning use graphic_frame.anchor.from.colOff /
1461
- rowOff
1462
- </p>
1463
-
1464
-
1465
- </div>
1466
- </div>
1467
- <div class="tags">
1468
- <h3>Parameters:</h3>
1469
- <ul class="param">
1470
-
1471
- <li>
1472
-
1473
- <span class='name'>x</span>
1474
-
1475
-
1476
- <span class='type'>(<tt>Integer</tt>)</span>
1477
-
1478
-
1479
-
1480
- &mdash;
1481
- <div class='inline'><p>
1482
- The column
1483
- </p>
1484
- </div>
1485
-
1486
- </li>
1487
-
1488
- <li>
1489
-
1490
- <span class='name'>y</span>
1491
-
1492
-
1493
- <span class='type'>(<tt>Integer</tt>)</span>
1494
-
1495
-
1496
- <em class="default">(defaults to: <tt>0</tt>)</em>
1497
-
1498
-
1499
- &mdash;
1500
- <div class='inline'><p>
1501
- The row
1502
- </p>
1503
- </div>
1504
-
1505
- </li>
1506
-
1507
- </ul>
1508
-
1509
- <h3>Returns:</h3>
1510
- <ul class="return">
1511
-
1512
- <li>
1513
-
1514
-
1515
- <span class='type'>(<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>)</span>
1516
-
1517
-
1518
-
1519
- </li>
1520
-
1521
- </ul>
1522
-
1523
- </div><table class="source_code">
1524
- <tr>
1525
- <td>
1526
- <pre class="lines">
1527
-
1528
-
1529
- 143
1530
- 144
1531
- 145
1532
- 146
1533
- 147</pre>
1534
- </td>
1535
- <td>
1536
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 143</span>
1537
-
1538
- <span class='def def kw'>def</span> <span class='start_at identifier id'>start_at</span><span class='lparen token'>(</span><span class='x identifier id'>x</span><span class='comma token'>,</span> <span class='y identifier id'>y</span><span class='assign token'>=</span><span class='integer val'>0</span><span class='rparen token'>)</span>
1539
- <span class='x identifier id'>x</span><span class='comma token'>,</span> <span class='y identifier id'>y</span> <span class='assign token'>=</span> <span class='mult op'>*</span><span class='parse_coord_args identifier id'>parse_coord_args</span><span class='lparen token'>(</span><span class='x identifier id'>x</span><span class='comma token'>,</span> <span class='y identifier id'>y</span><span class='rparen token'>)</span>
1540
- <span class='@graphic_frame ivar id'>@graphic_frame</span><span class='dot token'>.</span><span class='anchor identifier id'>anchor</span><span class='dot token'>.</span><span class='from identifier id'>from</span><span class='dot token'>.</span><span class='col identifier id'>col</span> <span class='assign token'>=</span> <span class='x identifier id'>x</span>
1541
- <span class='@graphic_frame ivar id'>@graphic_frame</span><span class='dot token'>.</span><span class='anchor identifier id'>anchor</span><span class='dot token'>.</span><span class='from identifier id'>from</span><span class='dot token'>.</span><span class='row identifier id'>row</span> <span class='assign token'>=</span> <span class='y identifier id'>y</span>
1542
- <span class='end end kw'>end</span>
1543
- </pre>
1544
- </td>
1545
- </tr>
1546
- </table>
1547
- </div>
1548
-
1549
- <div class="method_details ">
1550
- <p class="signature " id="to-instance_method">
1551
-
1552
- - (<tt>Object</tt>) <strong>to</strong>
1553
-
1554
-
1555
-
1556
- </p><div class="docstring">
1557
- <div class="discussion">
1558
-
1559
- <div class="note notetag">
1560
- <strong>Note:</strong>
1561
- <div class='inline'><p>
1562
- This will be disconinued in version 2.0.0. Please use the end_at method
1563
- </p>
1564
- </div>
1565
- </div>
1566
-
1567
- <p>
1568
- backwards compatibility to allow chart.to and chart.from access to anchor
1569
- markers
1570
- </p>
1571
-
1572
-
1573
- </div>
1574
- </div>
1575
- <div class="tags">
1576
-
1577
-
1578
- </div><table class="source_code">
1579
- <tr>
1580
- <td>
1581
- <pre class="lines">
1582
-
1583
-
1584
- 93
1585
- 94
1586
- 95</pre>
1587
- </td>
1588
- <td>
1589
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 93</span>
1590
-
1591
- <span class='def def kw'>def</span> <span class='to identifier id'>to</span>
1592
- <span class='@graphic_frame ivar id'>@graphic_frame</span><span class='dot token'>.</span><span class='anchor identifier id'>anchor</span><span class='dot token'>.</span><span class='to identifier id'>to</span>
1593
- <span class='end end kw'>end</span>
1594
- </pre>
1595
- </td>
1596
- </tr>
1597
- </table>
1598
- </div>
1599
-
1600
- <div class="method_details ">
1601
- <p class="signature " id="to_xml-instance_method">
1602
-
1603
- - (<tt>Object</tt>) <strong>to_xml</strong>
1604
-
1605
-
1606
-
1607
- </p><div class="docstring">
1608
- <div class="discussion">
1609
- <p>
1610
- Chart Serialization serializes the chart
1611
- </p>
1612
-
1613
-
1614
- </div>
1615
- </div>
1616
- <div class="tags">
1617
-
1618
-
1619
- </div><table class="source_code">
1620
- <tr>
1621
- <td>
1622
- <pre class="lines">
1623
-
1624
-
1625
- 113
1626
- 114
1627
- 115
1628
- 116
1629
- 117
1630
- 118
1631
- 119
1632
- 120
1633
- 121
1634
- 122
1635
- 123
1636
- 124
1637
- 125
1638
- 126
1639
- 127
1640
- 128
1641
- 129
1642
- 130
1643
- 131
1644
- 132
1645
- 133
1646
- 134
1647
- 135</pre>
1648
- </td>
1649
- <td>
1650
- <pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 113</span>
1651
-
1652
- <span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span>
1653
- <span class='builder identifier id'>builder</span> <span class='assign token'>=</span> <span class='Nokogiri constant id'>Nokogiri</span><span class='colon2 op'>::</span><span class='XML constant id'>XML</span><span class='colon2 op'>::</span><span class='Builder constant id'>Builder</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='symbol val'>:encoding</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='ENCODING constant id'>ENCODING</span><span class='rparen token'>)</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='xml identifier id'>xml</span><span class='bitor op'>|</span>
1654
- <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:chartSpace'</span><span class='comma token'>,</span><span class='symbol val'>:'xmlns:c'</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='XML_NS_C constant id'>XML_NS_C</span><span class='comma token'>,</span> <span class='symbol val'>:'xmlns:a'</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='XML_NS_A constant id'>XML_NS_A</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
1655
- <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:date1904'</span><span class='comma token'>,</span> <span class='symbol val'>:val=</span><span class='gt op'>&gt;</span><span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='Workbook constant id'>Workbook</span><span class='dot token'>.</span><span class='date1904 identifier id'>date1904</span><span class='rparen token'>)</span>
1656
- <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:style'</span><span class='comma token'>,</span> <span class='symbol val'>:val=</span><span class='gt op'>&gt;</span><span class='style identifier id'>style</span><span class='rparen token'>)</span>
1657
- <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:chart'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
1658
- <span class='@title ivar 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 ivar id'>@title</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
1659
- <span class='@view3D ivar id'>@view3D</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='@view3D ivar id'>@view3D</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
1660
- <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:plotArea'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
1661
- <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:layout'</span><span class='rparen token'>)</span>
1662
- <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>
1663
- <span class='rbrace token'>}</span>
1664
- <span class='if if kw'>if</span> <span class='@show_legend ivar id'>@show_legend</span>
1665
- <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:legend'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
1666
- <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:legendPos'</span><span class='comma token'>,</span> <span class='symbol val'>:val</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>&quot;r&quot;</span><span class='rparen token'>)</span>
1667
- <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:layout'</span><span class='rparen token'>)</span>
1668
- <span class='rbrace token'>}</span>
1669
- <span class='end end kw'>end</span>
1670
- <span class='rbrace token'>}</span>
1671
- <span class='rbrace token'>}</span>
1672
- <span class='end end kw'>end</span>
1673
- <span class='builder identifier id'>builder</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span>
1674
- <span class='end end kw'>end</span>
1675
- </pre>
1676
- </td>
1677
- </tr>
1678
- </table>
1679
- </div>
1680
-
1681
- </div>
1682
-
1683
- </div>
1684
-
1685
- <div id="footer">
1686
- Generated on Mon Dec 5 14:21:23 2011 by
1687
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1688
- 0.7.3 (ruby-1.8.7).
1689
- </div>
1690
-
1691
- </body>
1692
- </html>