axlsx 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +14 -0
- data/README.md +22 -21
- data/Rakefile +1 -1
- data/axlsx.gemspec +36 -0
- data/doc/Axlsx.html +373 -559
- data/doc/Axlsx/App.html +257 -360
- data/doc/Axlsx/Axis.html +113 -144
- data/doc/Axlsx/Bar3DChart.html +122 -152
- data/doc/Axlsx/BarSeries.html +67 -81
- data/doc/Axlsx/Border.html +96 -119
- data/doc/Axlsx/BorderPr.html +89 -114
- data/doc/Axlsx/CatAxis.html +79 -104
- data/doc/Axlsx/CatAxisData.html +40 -54
- data/doc/Axlsx/Cell.html +193 -679
- data/doc/Axlsx/CellAlignment.html +116 -157
- data/doc/Axlsx/CellProtection.html +50 -68
- data/doc/Axlsx/CellStyle.html +78 -106
- data/doc/Axlsx/Chart.html +361 -432
- data/doc/Axlsx/Color.html +56 -78
- data/doc/Axlsx/ContentType.html +28 -41
- data/doc/Axlsx/Core.html +43 -55
- data/doc/Axlsx/DataTypeValidator.html +34 -43
- data/doc/Axlsx/Default.html +55 -81
- data/doc/Axlsx/Drawing.html +322 -412
- data/doc/Axlsx/Fill.html +34 -47
- data/doc/Axlsx/Font.html +157 -207
- data/doc/Axlsx/GradientFill.html +90 -122
- data/doc/Axlsx/GradientStop.html +36 -50
- data/doc/Axlsx/GraphicFrame.html +106 -130
- data/doc/Axlsx/Line3DChart.html +108 -134
- data/doc/Axlsx/LineSeries.html +58 -67
- data/doc/Axlsx/Marker.html +84 -111
- data/doc/Axlsx/NumFmt.html +83 -102
- data/doc/Axlsx/OneCellAnchor.html +158 -196
- data/doc/Axlsx/Override.html +60 -92
- data/doc/Axlsx/Package.html +190 -759
- data/doc/Axlsx/PatternFill.html +78 -99
- data/doc/Axlsx/Pic.html +451 -405
- data/doc/Axlsx/Pie3DChart.html +33 -42
- data/doc/Axlsx/PieSeries.html +68 -80
- data/doc/Axlsx/RegexValidator.html +15 -20
- data/doc/Axlsx/Relationship.html +49 -66
- data/doc/Axlsx/Relationships.html +28 -41
- data/doc/Axlsx/RestrictionValidator.html +23 -32
- data/doc/Axlsx/Row.html +132 -161
- data/doc/Axlsx/Scaling.html +71 -90
- data/doc/Axlsx/SerAxis.html +61 -79
- data/doc/Axlsx/Series.html +125 -201
- data/doc/Axlsx/SeriesTitle.html +26 -31
- data/doc/Axlsx/Styles.html +286 -355
- data/doc/Axlsx/TableStyle.html +62 -87
- data/doc/Axlsx/TableStyleElement.html +84 -104
- data/doc/Axlsx/TableStyles.html +59 -82
- data/doc/Axlsx/Title.html +58 -155
- data/doc/Axlsx/TwoCellAnchor.html +165 -204
- data/doc/Axlsx/ValAxis.html +39 -53
- data/doc/Axlsx/ValAxisData.html +29 -39
- data/doc/Axlsx/View3D.html +93 -122
- data/doc/Axlsx/Workbook.html +359 -362
- data/doc/Axlsx/Worksheet.html +471 -816
- data/doc/Axlsx/Xf.html +341 -296
- data/doc/_index.html +7 -11
- data/doc/class_list.html +1 -1
- data/doc/file.LICENSE.html +86 -0
- data/doc/file.README.html +105 -107
- data/doc/file_list.html +3 -0
- data/doc/frames.html +1 -1
- data/doc/index.html +105 -107
- data/doc/method_list.html +426 -602
- data/doc/top-level-namespace.html +3 -3
- data/examples/example.rb +20 -1
- data/lib/axlsx.rb +20 -15
- data/lib/axlsx/content_type/default.rb +8 -3
- data/lib/axlsx/content_type/override.rb +11 -4
- data/lib/axlsx/doc_props/app.rb +53 -23
- data/lib/axlsx/drawing/axis.rb +16 -5
- data/lib/axlsx/drawing/bar_3D_chart.rb +15 -7
- data/lib/axlsx/drawing/bar_series.rb +7 -5
- data/lib/axlsx/drawing/cat_axis.rb +10 -3
- data/lib/axlsx/drawing/chart.rb +21 -15
- data/lib/axlsx/drawing/drawing.rb +16 -30
- data/lib/axlsx/drawing/graphic_frame.rb +2 -4
- data/lib/axlsx/drawing/line_3D_chart.rb +5 -2
- data/lib/axlsx/drawing/line_series.rb +6 -5
- data/lib/axlsx/drawing/marker.rb +9 -5
- data/lib/axlsx/drawing/one_cell_anchor.rb +7 -7
- data/lib/axlsx/drawing/pic.rb +29 -37
- data/lib/axlsx/drawing/pie_series.rb +7 -5
- data/lib/axlsx/drawing/scaling.rb +11 -5
- data/lib/axlsx/drawing/ser_axis.rb +6 -2
- data/lib/axlsx/drawing/series.rb +11 -11
- data/lib/axlsx/drawing/series_title.rb +1 -1
- data/lib/axlsx/drawing/title.rb +5 -12
- data/lib/axlsx/drawing/two_cell_anchor.rb +2 -3
- data/lib/axlsx/drawing/val_axis.rb +2 -2
- data/lib/axlsx/drawing/view_3D.rb +16 -9
- data/lib/axlsx/package.rb +25 -27
- data/lib/axlsx/rels/relationship.rb +4 -2
- data/lib/axlsx/stylesheet/border.rb +9 -4
- data/lib/axlsx/stylesheet/border_pr.rb +7 -4
- data/lib/axlsx/stylesheet/cell_alignment.rb +18 -9
- data/lib/axlsx/stylesheet/cell_protection.rb +5 -2
- data/lib/axlsx/stylesheet/cell_style.rb +12 -7
- data/lib/axlsx/stylesheet/color.rb +8 -6
- data/lib/axlsx/stylesheet/fill.rb +2 -1
- data/lib/axlsx/stylesheet/font.rb +24 -13
- data/lib/axlsx/stylesheet/gradient_fill.rb +16 -10
- data/lib/axlsx/stylesheet/gradient_stop.rb +5 -3
- data/lib/axlsx/stylesheet/num_fmt.rb +4 -2
- data/lib/axlsx/stylesheet/pattern_fill.rb +6 -4
- data/lib/axlsx/stylesheet/styles.rb +12 -12
- data/lib/axlsx/stylesheet/table_style.rb +6 -3
- data/lib/axlsx/stylesheet/table_style_element.rb +9 -4
- data/lib/axlsx/stylesheet/table_styles.rb +4 -4
- data/lib/axlsx/stylesheet/xf.rb +52 -31
- data/lib/axlsx/util/validators.rb +3 -3
- data/lib/axlsx/version.rb +1 -1
- data/lib/axlsx/workbook/workbook.rb +8 -9
- data/lib/axlsx/workbook/worksheet/cell.rb +25 -16
- data/lib/axlsx/workbook/worksheet/row.rb +2 -4
- data/lib/axlsx/workbook/worksheet/worksheet.rb +23 -32
- data/test/drawing/tc_one_cell_anchor.rb +1 -1
- metadata +135 -165
- data/doc/Axlsx/SimpleTypedList.html +0 -1686
- data/lib/schema/dc.xsd~ +0 -118
- data/lib/schema/dcterms.xsd~ +0 -331
- data/lib/schema/opc-coreProperties.xsd~ +0 -50
- data/test/drawing/tc_line_series.tc~ +0 -34
data/doc/Axlsx/Chart.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Axlsx::Chart
|
8
8
|
|
9
|
-
—
|
9
|
+
— AXLSX
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -97,16 +97,14 @@
|
|
97
97
|
|
98
98
|
<div class="note notetag">
|
99
99
|
<strong>Note:</strong>
|
100
|
-
<div class='inline'
|
101
|
-
Worksheet#add_chart is the recommended way to create charts for your
|
102
|
-
worksheets
|
103
|
-
</p>
|
100
|
+
<div class='inline'>
|
101
|
+
<p>Worksheet#add_chart is the recommended way to create charts for your
|
102
|
+
worksheets.</p>
|
104
103
|
</div>
|
105
104
|
</div>
|
106
105
|
|
107
|
-
|
108
|
-
A Chart is the superclass for specific charts
|
109
|
-
</p>
|
106
|
+
|
107
|
+
<p>A Chart is the superclass for specific charts</p>
|
110
108
|
|
111
109
|
|
112
110
|
</div>
|
@@ -149,9 +147,8 @@ A Chart is the superclass for specific charts
|
|
149
147
|
|
150
148
|
|
151
149
|
|
152
|
-
<span class="summary_desc"><div class='inline'
|
153
|
-
A reference to the graphic frame that owns this chart
|
154
|
-
</p>
|
150
|
+
<span class="summary_desc"><div class='inline'>
|
151
|
+
<p>A reference to the graphic frame that owns this chart.</p>
|
155
152
|
</div></span>
|
156
153
|
|
157
154
|
</li>
|
@@ -160,7 +157,7 @@ A reference to the graphic frame that owns this chart.
|
|
160
157
|
<li class="public ">
|
161
158
|
<span class="summary_signature">
|
162
159
|
|
163
|
-
<a href="#
|
160
|
+
<a href="#series-instance_method" title="#series (instance method)">- (SimpleTypedList) <strong>series</strong> </a>
|
164
161
|
|
165
162
|
|
166
163
|
|
@@ -176,9 +173,8 @@ A reference to the graphic frame that owns this chart.
|
|
176
173
|
|
177
174
|
|
178
175
|
|
179
|
-
<span class="summary_desc"><div class='inline'
|
180
|
-
|
181
|
-
</p>
|
176
|
+
<span class="summary_desc"><div class='inline'>
|
177
|
+
<p>A collection of series objects that are applied to the chart.</p>
|
182
178
|
</div></span>
|
183
179
|
|
184
180
|
</li>
|
@@ -187,7 +183,7 @@ The index of this chart in the workbooks charts collection.
|
|
187
183
|
<li class="public ">
|
188
184
|
<span class="summary_signature">
|
189
185
|
|
190
|
-
<a href="#
|
186
|
+
<a href="#series_type-instance_method" title="#series_type (instance method)">- (Series) <strong>series_type</strong> </a>
|
191
187
|
|
192
188
|
|
193
189
|
|
@@ -203,9 +199,8 @@ The index of this chart in the workbooks charts collection.
|
|
203
199
|
|
204
200
|
|
205
201
|
|
206
|
-
<span class="summary_desc"><div class='inline'
|
207
|
-
The
|
208
|
-
</p>
|
202
|
+
<span class="summary_desc"><div class='inline'>
|
203
|
+
<p>The type of series to use for this chart.</p>
|
209
204
|
</div></span>
|
210
205
|
|
211
206
|
</li>
|
@@ -214,14 +209,14 @@ The part name for this chart.
|
|
214
209
|
<li class="public ">
|
215
210
|
<span class="summary_signature">
|
216
211
|
|
217
|
-
<a href="#
|
212
|
+
<a href="#show_legend-instance_method" title="#show_legend (instance method)">- (Boolean) <strong>show_legend</strong> </a>
|
218
213
|
|
219
214
|
|
220
215
|
|
221
216
|
</span>
|
222
217
|
|
223
218
|
|
224
|
-
|
219
|
+
|
225
220
|
|
226
221
|
|
227
222
|
|
@@ -230,9 +225,8 @@ The part name for this chart.
|
|
230
225
|
|
231
226
|
|
232
227
|
|
233
|
-
<span class="summary_desc"><div class='inline'
|
234
|
-
|
235
|
-
</p>
|
228
|
+
<span class="summary_desc"><div class='inline'>
|
229
|
+
<p>Show the legend in the chart.</p>
|
236
230
|
</div></span>
|
237
231
|
|
238
232
|
</li>
|
@@ -241,14 +235,14 @@ A collection of series objects that are applied to the chart.
|
|
241
235
|
<li class="public ">
|
242
236
|
<span class="summary_signature">
|
243
237
|
|
244
|
-
<a href="#
|
238
|
+
<a href="#style-instance_method" title="#style (instance method)">- (Integer) <strong>style</strong> </a>
|
245
239
|
|
246
240
|
|
247
241
|
|
248
242
|
</span>
|
249
243
|
|
250
244
|
|
251
|
-
|
245
|
+
|
252
246
|
|
253
247
|
|
254
248
|
|
@@ -257,9 +251,8 @@ A collection of series objects that are applied to the chart.
|
|
257
251
|
|
258
252
|
|
259
253
|
|
260
|
-
<span class="summary_desc"><div class='inline'
|
261
|
-
The
|
262
|
-
</p>
|
254
|
+
<span class="summary_desc"><div class='inline'>
|
255
|
+
<p>The style for the chart.</p>
|
263
256
|
</div></span>
|
264
257
|
|
265
258
|
</li>
|
@@ -268,7 +261,7 @@ The type of series to use for this chart.
|
|
268
261
|
<li class="public ">
|
269
262
|
<span class="summary_signature">
|
270
263
|
|
271
|
-
<a href="#
|
264
|
+
<a href="#title-instance_method" title="#title (instance method)">- (Title) <strong>title</strong> </a>
|
272
265
|
|
273
266
|
|
274
267
|
|
@@ -284,9 +277,8 @@ The type of series to use for this chart.
|
|
284
277
|
|
285
278
|
|
286
279
|
|
287
|
-
<span class="summary_desc"><div class='inline'
|
288
|
-
|
289
|
-
</p>
|
280
|
+
<span class="summary_desc"><div class='inline'>
|
281
|
+
<p>The title object for the chart.</p>
|
290
282
|
</div></span>
|
291
283
|
|
292
284
|
</li>
|
@@ -295,7 +287,7 @@ Show the legend in the chart.
|
|
295
287
|
<li class="public ">
|
296
288
|
<span class="summary_signature">
|
297
289
|
|
298
|
-
<a href="#
|
290
|
+
<a href="#view3D-instance_method" title="#view3D (instance method)">- (Object) <strong>view3D</strong> </a>
|
299
291
|
|
300
292
|
|
301
293
|
|
@@ -311,85 +303,77 @@ Show the legend in the chart.
|
|
311
303
|
|
312
304
|
|
313
305
|
|
314
|
-
<span class="summary_desc"><div class='inline'
|
315
|
-
The
|
316
|
-
</p>
|
306
|
+
<span class="summary_desc"><div class='inline'>
|
307
|
+
<p>The 3D view properties for the chart.</p>
|
317
308
|
</div></span>
|
318
309
|
|
319
310
|
</li>
|
320
311
|
|
321
312
|
|
322
|
-
|
313
|
+
</ul>
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
<h2>
|
320
|
+
Instance Method Summary
|
321
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
322
|
+
</h2>
|
323
|
+
|
324
|
+
<ul class="summary">
|
325
|
+
|
326
|
+
<li class="public ">
|
323
327
|
<span class="summary_signature">
|
324
328
|
|
325
|
-
<a href="#
|
329
|
+
<a href="#add_series-instance_method" title="#add_series (instance method)">- (Series) <strong>add_series</strong>(options = {}) </a>
|
326
330
|
|
327
331
|
|
328
332
|
|
329
333
|
</span>
|
330
334
|
|
331
335
|
|
332
|
-
|
333
|
-
|
334
|
-
|
335
336
|
|
336
337
|
|
337
338
|
|
338
339
|
|
339
340
|
|
340
341
|
|
341
|
-
<span class="summary_desc"><div class='inline'
|
342
|
-
|
343
|
-
</p>
|
342
|
+
<span class="summary_desc"><div class='inline'>
|
343
|
+
<p>Adds a new series to the chart's series collection.</p>
|
344
344
|
</div></span>
|
345
345
|
|
346
346
|
</li>
|
347
347
|
|
348
|
-
|
349
|
-
|
348
|
+
|
349
|
+
<li class="public ">
|
350
350
|
<span class="summary_signature">
|
351
351
|
|
352
|
-
<a href="#
|
352
|
+
<a href="#end_at-instance_method" title="#end_at (instance method)">- (Marker) <strong>end_at</strong>(x, y) </a>
|
353
353
|
|
354
354
|
|
355
355
|
|
356
356
|
</span>
|
357
357
|
|
358
358
|
|
359
|
-
|
360
|
-
|
361
|
-
|
362
359
|
|
363
360
|
|
364
361
|
|
365
362
|
|
366
363
|
|
367
364
|
|
368
|
-
<span class="summary_desc"><div class='inline'
|
369
|
-
|
370
|
-
|
365
|
+
<span class="summary_desc"><div class='inline'>
|
366
|
+
<p>This is a short cut method to set the end anchor position If you need finer
|
367
|
+
granularity in positioning use graphic_frame.anchor.to.colOff / rowOff.</p>
|
371
368
|
</div></span>
|
372
369
|
|
373
370
|
</li>
|
374
371
|
|
375
|
-
|
376
|
-
</ul>
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
<h2>
|
383
|
-
Instance Method Summary
|
384
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
385
|
-
</h2>
|
386
|
-
|
387
|
-
<ul class="summary">
|
388
372
|
|
389
373
|
<li class="public ">
|
390
374
|
<span class="summary_signature">
|
391
375
|
|
392
|
-
<a href="#
|
376
|
+
<a href="#from-instance_method" title="#from (instance method)">- (Object) <strong>from</strong> </a>
|
393
377
|
|
394
378
|
|
395
379
|
|
@@ -402,9 +386,9 @@ The 3D view properties for the chart.
|
|
402
386
|
|
403
387
|
|
404
388
|
|
405
|
-
<span class="summary_desc"><div class='inline'
|
406
|
-
|
407
|
-
|
389
|
+
<span class="summary_desc"><div class='inline'>
|
390
|
+
<p>backwards compatibility to allow chart.to and chart.from access to anchor
|
391
|
+
markers.</p>
|
408
392
|
</div></span>
|
409
393
|
|
410
394
|
</li>
|
@@ -413,7 +397,7 @@ Adds a new series to the chart’s series collection.
|
|
413
397
|
<li class="public ">
|
414
398
|
<span class="summary_signature">
|
415
399
|
|
416
|
-
<a href="#
|
400
|
+
<a href="#index-instance_method" title="#index (instance method)">- (Integer) <strong>index</strong> </a>
|
417
401
|
|
418
402
|
|
419
403
|
|
@@ -426,10 +410,8 @@ Adds a new series to the chart’s series collection.
|
|
426
410
|
|
427
411
|
|
428
412
|
|
429
|
-
<span class="summary_desc"><div class='inline'
|
430
|
-
|
431
|
-
granularity in positioning use graphic_frame.anchor.to.colOff / rowOff.
|
432
|
-
</p>
|
413
|
+
<span class="summary_desc"><div class='inline'>
|
414
|
+
<p>The index of this chart in the workbooks charts collection.</p>
|
433
415
|
</div></span>
|
434
416
|
|
435
417
|
</li>
|
@@ -438,12 +420,14 @@ granularity in positioning use graphic_frame.anchor.to.colOff / rowOff.
|
|
438
420
|
<li class="public ">
|
439
421
|
<span class="summary_signature">
|
440
422
|
|
441
|
-
<a href="#
|
423
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Chart) <strong>initialize</strong>(frame, options = {}) {|_self| ... }</a>
|
442
424
|
|
443
425
|
|
444
426
|
|
445
427
|
</span>
|
446
428
|
|
429
|
+
<span class="note title constructor">constructor</span>
|
430
|
+
|
447
431
|
|
448
432
|
|
449
433
|
|
@@ -451,10 +435,8 @@ granularity in positioning use graphic_frame.anchor.to.colOff / rowOff.
|
|
451
435
|
|
452
436
|
|
453
437
|
|
454
|
-
<span class="summary_desc"><div class='inline'
|
455
|
-
|
456
|
-
markers.
|
457
|
-
</p>
|
438
|
+
<span class="summary_desc"><div class='inline'>
|
439
|
+
<p>Creates a new chart object.</p>
|
458
440
|
</div></span>
|
459
441
|
|
460
442
|
</li>
|
@@ -463,14 +445,12 @@ markers.
|
|
463
445
|
<li class="public ">
|
464
446
|
<span class="summary_signature">
|
465
447
|
|
466
|
-
<a href="#
|
448
|
+
<a href="#pn-instance_method" title="#pn (instance method)">- (String) <strong>pn</strong> </a>
|
467
449
|
|
468
450
|
|
469
451
|
|
470
452
|
</span>
|
471
453
|
|
472
|
-
<span class="note title constructor">constructor</span>
|
473
|
-
|
474
454
|
|
475
455
|
|
476
456
|
|
@@ -478,9 +458,8 @@ markers.
|
|
478
458
|
|
479
459
|
|
480
460
|
|
481
|
-
<span class="summary_desc"><div class='inline'
|
482
|
-
|
483
|
-
</p>
|
461
|
+
<span class="summary_desc"><div class='inline'>
|
462
|
+
<p>The part name for this chart.</p>
|
484
463
|
</div></span>
|
485
464
|
|
486
465
|
</li>
|
@@ -502,11 +481,10 @@ Creates a new chart object.
|
|
502
481
|
|
503
482
|
|
504
483
|
|
505
|
-
<span class="summary_desc"><div class='inline'
|
506
|
-
This is a short cut method to set the start anchor position If you need
|
484
|
+
<span class="summary_desc"><div class='inline'>
|
485
|
+
<p>This is a short cut method to set the start anchor position If you need
|
507
486
|
finer granularity in positioning use graphic_frame.anchor.from.colOff /
|
508
|
-
rowOff
|
509
|
-
</p>
|
487
|
+
rowOff.</p>
|
510
488
|
</div></span>
|
511
489
|
|
512
490
|
</li>
|
@@ -528,10 +506,9 @@ rowOff.
|
|
528
506
|
|
529
507
|
|
530
508
|
|
531
|
-
<span class="summary_desc"><div class='inline'
|
532
|
-
backwards compatibility to allow chart.to and chart.from access to anchor
|
533
|
-
markers
|
534
|
-
</p>
|
509
|
+
<span class="summary_desc"><div class='inline'>
|
510
|
+
<p>backwards compatibility to allow chart.to and chart.from access to anchor
|
511
|
+
markers.</p>
|
535
512
|
</div></span>
|
536
513
|
|
537
514
|
</li>
|
@@ -553,9 +530,8 @@ markers.
|
|
553
530
|
|
554
531
|
|
555
532
|
|
556
|
-
<span class="summary_desc"><div class='inline'
|
557
|
-
Chart Serialization serializes the chart
|
558
|
-
</p>
|
533
|
+
<span class="summary_desc"><div class='inline'>
|
534
|
+
<p>Chart Serialization serializes the chart.</p>
|
559
535
|
</div></span>
|
560
536
|
|
561
537
|
</li>
|
@@ -576,9 +552,8 @@ Chart Serialization serializes the chart.
|
|
576
552
|
|
577
553
|
</p><div class="docstring">
|
578
554
|
<div class="discussion">
|
579
|
-
|
580
|
-
Creates a new chart object
|
581
|
-
</p>
|
555
|
+
|
556
|
+
<p>Creates a new chart object</p>
|
582
557
|
|
583
558
|
|
584
559
|
</div>
|
@@ -597,9 +572,8 @@ Creates a new chart object
|
|
597
572
|
|
598
573
|
|
599
574
|
—
|
600
|
-
<div class='inline'
|
601
|
-
The frame that holds this chart
|
602
|
-
</p>
|
575
|
+
<div class='inline'>
|
576
|
+
<p>The frame that holds this chart.</p>
|
603
577
|
</div>
|
604
578
|
|
605
579
|
</li>
|
@@ -616,9 +590,8 @@ The frame that holds this chart.
|
|
616
590
|
|
617
591
|
|
618
592
|
—
|
619
|
-
<div class='inline'
|
620
|
-
a customizable set of options
|
621
|
-
</p>
|
593
|
+
<div class='inline'>
|
594
|
+
<p>a customizable set of options</p>
|
622
595
|
</div>
|
623
596
|
|
624
597
|
</li>
|
@@ -680,9 +653,8 @@ a customizable set of options
|
|
680
653
|
|
681
654
|
|
682
655
|
—
|
683
|
-
<div class='inline'
|
684
|
-
the object that the method was called on
|
685
|
-
</p>
|
656
|
+
<div class='inline'>
|
657
|
+
<p>the object that the method was called on</p>
|
686
658
|
</div>
|
687
659
|
|
688
660
|
</li>
|
@@ -695,39 +667,38 @@ the object that the method was called on
|
|
695
667
|
<pre class="lines">
|
696
668
|
|
697
669
|
|
670
|
+
44
|
671
|
+
45
|
672
|
+
46
|
673
|
+
47
|
674
|
+
48
|
675
|
+
49
|
676
|
+
50
|
677
|
+
51
|
698
678
|
52
|
699
679
|
53
|
700
680
|
54
|
701
681
|
55
|
702
682
|
56
|
703
|
-
57
|
704
|
-
58
|
705
|
-
59
|
706
|
-
60
|
707
|
-
61
|
708
|
-
62
|
709
|
-
63
|
710
|
-
64
|
711
|
-
65</pre>
|
683
|
+
57</pre>
|
712
684
|
</td>
|
713
685
|
<td>
|
714
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
715
|
-
|
716
|
-
<span class='
|
717
|
-
<span class='
|
718
|
-
<span class='
|
719
|
-
<span class='
|
720
|
-
<span class='
|
721
|
-
<span class='
|
722
|
-
<span class='
|
723
|
-
<span class='options
|
724
|
-
<span class='
|
725
|
-
<span class='
|
726
|
-
<span class='start_at
|
727
|
-
<span class='end_at
|
728
|
-
<span class='
|
729
|
-
<span class='
|
730
|
-
</pre>
|
686
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 44</span>
|
687
|
+
|
688
|
+
<span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id frame'>frame</span><span class='comma'>,</span> <span class='id options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
689
|
+
<span class='ivar'>@style</span> <span class='op'>=</span> <span class='int'>2</span>
|
690
|
+
<span class='ivar'>@graphic_frame</span><span class='op'>=</span><span class='id frame'>frame</span>
|
691
|
+
<span class='ivar'>@graphic_frame</span><span class='period'>.</span><span class='id anchor'>anchor</span><span class='period'>.</span><span class='id drawing'>drawing</span><span class='period'>.</span><span class='id worksheet'>worksheet</span><span class='period'>.</span><span class='id workbook'>workbook</span><span class='period'>.</span><span class='id charts'>charts</span> <span class='op'><<</span> <span class='kw'>self</span>
|
692
|
+
<span class='ivar'>@series</span> <span class='op'>=</span> <span class='const'>SimpleTypedList</span><span class='period'>.</span><span class='id new'>new</span> <span class='const'>Series</span>
|
693
|
+
<span class='ivar'>@show_legend</span> <span class='op'>=</span> <span class='kw'>true</span>
|
694
|
+
<span class='ivar'>@series_type</span> <span class='op'>=</span> <span class='const'>Series</span>
|
695
|
+
<span class='id options'>options</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id o'>o</span><span class='op'>|</span>
|
696
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id respond_to?'>respond_to?</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>"</span></span>
|
697
|
+
<span class='kw'>end</span>
|
698
|
+
<span class='id start_at'>start_at</span><span class='lparen'>(</span><span class='op'>*</span><span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:start_at</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:start_at</span><span class='rbracket'>]</span>
|
699
|
+
<span class='id end_at'>end_at</span><span class='lparen'>(</span><span class='op'>*</span><span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:end_at</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:start_at</span><span class='rbracket'>]</span>
|
700
|
+
<span class='kw'>yield</span> <span class='kw'>self</span> <span class='kw'>if</span> <span class='id block_given?'>block_given?</span>
|
701
|
+
<span class='kw'>end</span></pre>
|
731
702
|
</td>
|
732
703
|
</tr>
|
733
704
|
</table>
|
@@ -750,9 +721,8 @@ the object that the method was called on
|
|
750
721
|
|
751
722
|
</p><div class="docstring">
|
752
723
|
<div class="discussion">
|
753
|
-
|
754
|
-
A reference to the graphic frame that owns this chart
|
755
|
-
</p>
|
724
|
+
|
725
|
+
<p>A reference to the graphic frame that owns this chart</p>
|
756
726
|
|
757
727
|
|
758
728
|
</div>
|
@@ -786,124 +756,9 @@ A reference to the graphic frame that owns this chart
|
|
786
756
|
<td>
|
787
757
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 14</span>
|
788
758
|
|
789
|
-
<span class='
|
790
|
-
<span class='
|
791
|
-
<span class='
|
792
|
-
</pre>
|
793
|
-
</td>
|
794
|
-
</tr>
|
795
|
-
</table>
|
796
|
-
</div>
|
797
|
-
|
798
|
-
|
799
|
-
<span id=""></span>
|
800
|
-
<span id="index-instance_method"></span>
|
801
|
-
<div class="method_details ">
|
802
|
-
<p class="signature " id="index-instance_method">
|
803
|
-
|
804
|
-
- (<tt>Integer</tt>) <strong>index</strong> <span class="extras">(readonly)</span>
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
</p><div class="docstring">
|
809
|
-
<div class="discussion">
|
810
|
-
<p>
|
811
|
-
The index of this chart in the workbooks charts collection
|
812
|
-
</p>
|
813
|
-
|
814
|
-
|
815
|
-
</div>
|
816
|
-
</div>
|
817
|
-
<div class="tags">
|
818
|
-
|
819
|
-
<h3>Returns:</h3>
|
820
|
-
<ul class="return">
|
821
|
-
|
822
|
-
<li>
|
823
|
-
|
824
|
-
|
825
|
-
<span class='type'>(<tt>Integer</tt>)</span>
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
</li>
|
830
|
-
|
831
|
-
</ul>
|
832
|
-
|
833
|
-
</div><table class="source_code">
|
834
|
-
<tr>
|
835
|
-
<td>
|
836
|
-
<pre class="lines">
|
837
|
-
|
838
|
-
|
839
|
-
26
|
840
|
-
27
|
841
|
-
28</pre>
|
842
|
-
</td>
|
843
|
-
<td>
|
844
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 26</span>
|
845
|
-
|
846
|
-
<span class='def def kw'>def</span> <span class='index identifier id'>index</span>
|
847
|
-
<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>
|
848
|
-
<span class='end end kw'>end</span>
|
849
|
-
</pre>
|
850
|
-
</td>
|
851
|
-
</tr>
|
852
|
-
</table>
|
853
|
-
</div>
|
854
|
-
|
855
|
-
|
856
|
-
<span id=""></span>
|
857
|
-
<span id="pn-instance_method"></span>
|
858
|
-
<div class="method_details ">
|
859
|
-
<p class="signature " id="pn-instance_method">
|
860
|
-
|
861
|
-
- (<tt>String</tt>) <strong>pn</strong> <span class="extras">(readonly)</span>
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
</p><div class="docstring">
|
866
|
-
<div class="discussion">
|
867
|
-
<p>
|
868
|
-
The part name for this chart
|
869
|
-
</p>
|
870
|
-
|
871
|
-
|
872
|
-
</div>
|
873
|
-
</div>
|
874
|
-
<div class="tags">
|
875
|
-
|
876
|
-
<h3>Returns:</h3>
|
877
|
-
<ul class="return">
|
878
|
-
|
879
|
-
<li>
|
880
|
-
|
881
|
-
|
882
|
-
<span class='type'>(<tt>String</tt>)</span>
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
</li>
|
887
|
-
|
888
|
-
</ul>
|
889
|
-
|
890
|
-
</div><table class="source_code">
|
891
|
-
<tr>
|
892
|
-
<td>
|
893
|
-
<pre class="lines">
|
894
|
-
|
895
|
-
|
896
|
-
30
|
897
|
-
31
|
898
|
-
32</pre>
|
899
|
-
</td>
|
900
|
-
<td>
|
901
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 30</span>
|
902
|
-
|
903
|
-
<span class='def def kw'>def</span> <span class='pn identifier id'>pn</span>
|
904
|
-
<span class='dstring node'>"#{CHART_PN % (index+1)}"</span>
|
905
|
-
<span class='end end kw'>end</span>
|
906
|
-
</pre>
|
759
|
+
<span class='kw'>def</span> <span class='id graphic_frame'>graphic_frame</span>
|
760
|
+
<span class='ivar'>@graphic_frame</span>
|
761
|
+
<span class='kw'>end</span></pre>
|
907
762
|
</td>
|
908
763
|
</tr>
|
909
764
|
</table>
|
@@ -921,9 +776,8 @@ The part name for this chart
|
|
921
776
|
|
922
777
|
</p><div class="docstring">
|
923
778
|
<div class="discussion">
|
924
|
-
|
925
|
-
A collection of series objects that are applied to the chart
|
926
|
-
</p>
|
779
|
+
|
780
|
+
<p>A collection of series objects that are applied to the chart</p>
|
927
781
|
|
928
782
|
|
929
783
|
</div>
|
@@ -957,10 +811,9 @@ A collection of series objects that are applied to the chart
|
|
957
811
|
<td>
|
958
812
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 18</span>
|
959
813
|
|
960
|
-
<span class='
|
961
|
-
<span class='
|
962
|
-
<span class='
|
963
|
-
</pre>
|
814
|
+
<span class='kw'>def</span> <span class='id series'>series</span>
|
815
|
+
<span class='ivar'>@series</span>
|
816
|
+
<span class='kw'>end</span></pre>
|
964
817
|
</td>
|
965
818
|
</tr>
|
966
819
|
</table>
|
@@ -978,9 +831,8 @@ A collection of series objects that are applied to the chart
|
|
978
831
|
|
979
832
|
</p><div class="docstring">
|
980
833
|
<div class="discussion">
|
981
|
-
|
982
|
-
The type of series to use for this chart
|
983
|
-
</p>
|
834
|
+
|
835
|
+
<p>The type of series to use for this chart.</p>
|
984
836
|
|
985
837
|
|
986
838
|
</div>
|
@@ -1014,10 +866,9 @@ The type of series to use for this chart.
|
|
1014
866
|
<td>
|
1015
867
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 22</span>
|
1016
868
|
|
1017
|
-
<span class='
|
1018
|
-
<span class='
|
1019
|
-
<span class='
|
1020
|
-
</pre>
|
869
|
+
<span class='kw'>def</span> <span class='id series_type'>series_type</span>
|
870
|
+
<span class='ivar'>@series_type</span>
|
871
|
+
<span class='kw'>end</span></pre>
|
1021
872
|
</td>
|
1022
873
|
</tr>
|
1023
874
|
</table>
|
@@ -1035,9 +886,8 @@ The type of series to use for this chart.
|
|
1035
886
|
|
1036
887
|
</p><div class="docstring">
|
1037
888
|
<div class="discussion">
|
1038
|
-
|
1039
|
-
Show the legend in the chart
|
1040
|
-
</p>
|
889
|
+
|
890
|
+
<p>Show the legend in the chart</p>
|
1041
891
|
|
1042
892
|
|
1043
893
|
</div>
|
@@ -1064,17 +914,16 @@ Show the legend in the chart
|
|
1064
914
|
<pre class="lines">
|
1065
915
|
|
1066
916
|
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
917
|
+
38
|
918
|
+
39
|
919
|
+
40</pre>
|
1070
920
|
</td>
|
1071
921
|
<td>
|
1072
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
922
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 38</span>
|
1073
923
|
|
1074
|
-
<span class='
|
1075
|
-
<span class='
|
1076
|
-
<span class='
|
1077
|
-
</pre>
|
924
|
+
<span class='kw'>def</span> <span class='id show_legend'>show_legend</span>
|
925
|
+
<span class='ivar'>@show_legend</span>
|
926
|
+
<span class='kw'>end</span></pre>
|
1078
927
|
</td>
|
1079
928
|
</tr>
|
1080
929
|
</table>
|
@@ -1092,9 +941,8 @@ Show the legend in the chart
|
|
1092
941
|
|
1093
942
|
</p><div class="docstring">
|
1094
943
|
<div class="discussion">
|
1095
|
-
|
1096
|
-
The style for the chart.
|
1097
|
-
</p>
|
944
|
+
|
945
|
+
<p>The style for the chart. see ECMA Part 1 §21.2.2.196</p>
|
1098
946
|
|
1099
947
|
|
1100
948
|
</div>
|
@@ -1121,17 +969,16 @@ The style for the chart. see ECMA Part 1 §21.2.2.196
|
|
1121
969
|
<pre class="lines">
|
1122
970
|
|
1123
971
|
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
972
|
+
34
|
973
|
+
35
|
974
|
+
36</pre>
|
1127
975
|
</td>
|
1128
976
|
<td>
|
1129
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
977
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 34</span>
|
1130
978
|
|
1131
|
-
<span class='
|
1132
|
-
<span class='
|
1133
|
-
<span class='
|
1134
|
-
</pre>
|
979
|
+
<span class='kw'>def</span> <span class='id style'>style</span>
|
980
|
+
<span class='ivar'>@style</span>
|
981
|
+
<span class='kw'>end</span></pre>
|
1135
982
|
</td>
|
1136
983
|
</tr>
|
1137
984
|
</table>
|
@@ -1149,9 +996,8 @@ The style for the chart. see ECMA Part 1 §21.2.2.196
|
|
1149
996
|
|
1150
997
|
</p><div class="docstring">
|
1151
998
|
<div class="discussion">
|
1152
|
-
|
1153
|
-
The title object for the chart
|
1154
|
-
</p>
|
999
|
+
|
1000
|
+
<p>The title object for the chart.</p>
|
1155
1001
|
|
1156
1002
|
|
1157
1003
|
</div>
|
@@ -1178,17 +1024,16 @@ The title object for the chart.
|
|
1178
1024
|
<pre class="lines">
|
1179
1025
|
|
1180
1026
|
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
1027
|
+
29
|
1028
|
+
30
|
1029
|
+
31</pre>
|
1184
1030
|
</td>
|
1185
1031
|
<td>
|
1186
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
1032
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 29</span>
|
1187
1033
|
|
1188
|
-
<span class='
|
1189
|
-
<span class='
|
1190
|
-
<span class='
|
1191
|
-
</pre>
|
1034
|
+
<span class='kw'>def</span> <span class='id title'>title</span>
|
1035
|
+
<span class='ivar'>@title</span>
|
1036
|
+
<span class='kw'>end</span></pre>
|
1192
1037
|
</td>
|
1193
1038
|
</tr>
|
1194
1039
|
</table>
|
@@ -1206,9 +1051,8 @@ The title object for the chart.
|
|
1206
1051
|
|
1207
1052
|
</p><div class="docstring">
|
1208
1053
|
<div class="discussion">
|
1209
|
-
|
1210
|
-
The 3D view properties for the chart
|
1211
|
-
</p>
|
1054
|
+
|
1055
|
+
<p>The 3D view properties for the chart</p>
|
1212
1056
|
|
1213
1057
|
|
1214
1058
|
</div>
|
@@ -1229,10 +1073,9 @@ The 3D view properties for the chart
|
|
1229
1073
|
<td>
|
1230
1074
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 10</span>
|
1231
1075
|
|
1232
|
-
<span class='
|
1233
|
-
<span class='
|
1234
|
-
<span class='
|
1235
|
-
</pre>
|
1076
|
+
<span class='kw'>def</span> <span class='id view3D'>view3D</span>
|
1077
|
+
<span class='ivar'>@view3D</span>
|
1078
|
+
<span class='kw'>end</span></pre>
|
1236
1079
|
</td>
|
1237
1080
|
</tr>
|
1238
1081
|
</table>
|
@@ -1254,9 +1097,8 @@ The 3D view properties for the chart
|
|
1254
1097
|
|
1255
1098
|
</p><div class="docstring">
|
1256
1099
|
<div class="discussion">
|
1257
|
-
|
1258
|
-
Adds a new series to the chart
|
1259
|
-
</p>
|
1100
|
+
|
1101
|
+
<p>Adds a new series to the chart's series collection.</p>
|
1260
1102
|
|
1261
1103
|
|
1262
1104
|
</div>
|
@@ -1290,19 +1132,18 @@ Adds a new series to the chart’s series collection.
|
|
1290
1132
|
<pre class="lines">
|
1291
1133
|
|
1292
1134
|
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1135
|
+
106
|
1136
|
+
107
|
1137
|
+
108
|
1138
|
+
109</pre>
|
1297
1139
|
</td>
|
1298
1140
|
<td>
|
1299
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
1141
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 106</span>
|
1300
1142
|
|
1301
|
-
<span class='
|
1302
|
-
<span class='
|
1303
|
-
<span class='
|
1304
|
-
<span class='
|
1305
|
-
</pre>
|
1143
|
+
<span class='kw'>def</span> <span class='id add_series'>add_series</span><span class='lparen'>(</span><span class='id options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
1144
|
+
<span class='ivar'>@series_type</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id options'>options</span><span class='rparen'>)</span>
|
1145
|
+
<span class='ivar'>@series</span><span class='period'>.</span><span class='id last'>last</span>
|
1146
|
+
<span class='kw'>end</span></pre>
|
1306
1147
|
</td>
|
1307
1148
|
</tr>
|
1308
1149
|
</table>
|
@@ -1317,10 +1158,9 @@ Adds a new series to the chart’s series collection.
|
|
1317
1158
|
|
1318
1159
|
</p><div class="docstring">
|
1319
1160
|
<div class="discussion">
|
1320
|
-
|
1321
|
-
This is a short cut method to set the end anchor position If you need finer
|
1322
|
-
granularity in positioning use graphic_frame.anchor.to.colOff / rowOff
|
1323
|
-
</p>
|
1161
|
+
|
1162
|
+
<p>This is a short cut method to set the end anchor position If you need finer
|
1163
|
+
granularity in positioning use graphic_frame.anchor.to.colOff / rowOff</p>
|
1324
1164
|
|
1325
1165
|
|
1326
1166
|
</div>
|
@@ -1339,9 +1179,8 @@ granularity in positioning use graphic_frame.anchor.to.colOff / rowOff
|
|
1339
1179
|
|
1340
1180
|
|
1341
1181
|
—
|
1342
|
-
<div class='inline'
|
1343
|
-
The column
|
1344
|
-
</p>
|
1182
|
+
<div class='inline'>
|
1183
|
+
<p>The column</p>
|
1345
1184
|
</div>
|
1346
1185
|
|
1347
1186
|
</li>
|
@@ -1356,9 +1195,8 @@ The column
|
|
1356
1195
|
|
1357
1196
|
|
1358
1197
|
—
|
1359
|
-
<div class='inline'
|
1360
|
-
The row
|
1361
|
-
</p>
|
1198
|
+
<div class='inline'>
|
1199
|
+
<p>The row</p>
|
1362
1200
|
</div>
|
1363
1201
|
|
1364
1202
|
</li>
|
@@ -1385,19 +1223,18 @@ The row
|
|
1385
1223
|
<pre class="lines">
|
1386
1224
|
|
1387
1225
|
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1226
|
+
154
|
1227
|
+
155
|
1228
|
+
156
|
1229
|
+
157</pre>
|
1392
1230
|
</td>
|
1393
1231
|
<td>
|
1394
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
1232
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 154</span>
|
1395
1233
|
|
1396
|
-
<span class='
|
1397
|
-
<span class='
|
1398
|
-
<span class='
|
1399
|
-
<span class='
|
1400
|
-
</pre>
|
1234
|
+
<span class='kw'>def</span> <span class='id end_at'>end_at</span><span class='lparen'>(</span><span class='id x'>x</span><span class='comma'>,</span> <span class='id y'>y</span><span class='rparen'>)</span>
|
1235
|
+
<span class='ivar'>@graphic_frame</span><span class='period'>.</span><span class='id anchor'>anchor</span><span class='period'>.</span><span class='id to'>to</span><span class='period'>.</span><span class='id col'>col</span> <span class='op'>=</span> <span class='id x'>x</span>
|
1236
|
+
<span class='ivar'>@graphic_frame</span><span class='period'>.</span><span class='id anchor'>anchor</span><span class='period'>.</span><span class='id to'>to</span><span class='period'>.</span><span class='id row'>row</span> <span class='op'>=</span> <span class='id y'>y</span>
|
1237
|
+
<span class='kw'>end</span></pre>
|
1401
1238
|
</td>
|
1402
1239
|
</tr>
|
1403
1240
|
</table>
|
@@ -1415,16 +1252,14 @@ The row
|
|
1415
1252
|
|
1416
1253
|
<div class="note notetag">
|
1417
1254
|
<strong>Note:</strong>
|
1418
|
-
<div class='inline'
|
1419
|
-
This will be disconinued in version 2.0.0. please use the start_at method
|
1420
|
-
</p>
|
1255
|
+
<div class='inline'>
|
1256
|
+
<p>This will be disconinued in version 2.0.0. please use the start_at method</p>
|
1421
1257
|
</div>
|
1422
1258
|
</div>
|
1423
1259
|
|
1424
|
-
|
1425
|
-
backwards compatibility to allow chart.to and chart.from access to anchor
|
1426
|
-
markers
|
1427
|
-
</p>
|
1260
|
+
|
1261
|
+
<p>backwards compatibility to allow chart.to and chart.from access to anchor
|
1262
|
+
markers</p>
|
1428
1263
|
|
1429
1264
|
|
1430
1265
|
</div>
|
@@ -1438,17 +1273,120 @@ markers
|
|
1438
1273
|
<pre class="lines">
|
1439
1274
|
|
1440
1275
|
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1276
|
+
99
|
1277
|
+
100
|
1278
|
+
101</pre>
|
1444
1279
|
</td>
|
1445
1280
|
<td>
|
1446
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
1281
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 99</span>
|
1282
|
+
|
1283
|
+
<span class='kw'>def</span> <span class='id from'>from</span>
|
1284
|
+
<span class='ivar'>@graphic_frame</span><span class='period'>.</span><span class='id anchor'>anchor</span><span class='period'>.</span><span class='id from'>from</span>
|
1285
|
+
<span class='kw'>end</span></pre>
|
1286
|
+
</td>
|
1287
|
+
</tr>
|
1288
|
+
</table>
|
1289
|
+
</div>
|
1290
|
+
|
1291
|
+
<div class="method_details ">
|
1292
|
+
<p class="signature " id="index-instance_method">
|
1293
|
+
|
1294
|
+
- (<tt>Integer</tt>) <strong>index</strong>
|
1295
|
+
|
1296
|
+
|
1297
|
+
|
1298
|
+
</p><div class="docstring">
|
1299
|
+
<div class="discussion">
|
1300
|
+
|
1301
|
+
<p>The index of this chart in the workbooks charts collection</p>
|
1302
|
+
|
1303
|
+
|
1304
|
+
</div>
|
1305
|
+
</div>
|
1306
|
+
<div class="tags">
|
1307
|
+
|
1308
|
+
<h3>Returns:</h3>
|
1309
|
+
<ul class="return">
|
1310
|
+
|
1311
|
+
<li>
|
1312
|
+
|
1313
|
+
|
1314
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
1315
|
+
|
1316
|
+
|
1317
|
+
|
1318
|
+
</li>
|
1319
|
+
|
1320
|
+
</ul>
|
1321
|
+
|
1322
|
+
</div><table class="source_code">
|
1323
|
+
<tr>
|
1324
|
+
<td>
|
1325
|
+
<pre class="lines">
|
1326
|
+
|
1327
|
+
|
1328
|
+
61
|
1329
|
+
62
|
1330
|
+
63</pre>
|
1331
|
+
</td>
|
1332
|
+
<td>
|
1333
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 61</span>
|
1447
1334
|
|
1448
|
-
<span class='
|
1449
|
-
<span class='
|
1450
|
-
<span class='
|
1451
|
-
</
|
1335
|
+
<span class='kw'>def</span> <span class='id index'>index</span>
|
1336
|
+
<span class='ivar'>@graphic_frame</span><span class='period'>.</span><span class='id anchor'>anchor</span><span class='period'>.</span><span class='id drawing'>drawing</span><span class='period'>.</span><span class='id worksheet'>worksheet</span><span class='period'>.</span><span class='id workbook'>workbook</span><span class='period'>.</span><span class='id charts'>charts</span><span class='period'>.</span><span class='id index'>index</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
|
1337
|
+
<span class='kw'>end</span></pre>
|
1338
|
+
</td>
|
1339
|
+
</tr>
|
1340
|
+
</table>
|
1341
|
+
</div>
|
1342
|
+
|
1343
|
+
<div class="method_details ">
|
1344
|
+
<p class="signature " id="pn-instance_method">
|
1345
|
+
|
1346
|
+
- (<tt>String</tt>) <strong>pn</strong>
|
1347
|
+
|
1348
|
+
|
1349
|
+
|
1350
|
+
</p><div class="docstring">
|
1351
|
+
<div class="discussion">
|
1352
|
+
|
1353
|
+
<p>The part name for this chart</p>
|
1354
|
+
|
1355
|
+
|
1356
|
+
</div>
|
1357
|
+
</div>
|
1358
|
+
<div class="tags">
|
1359
|
+
|
1360
|
+
<h3>Returns:</h3>
|
1361
|
+
<ul class="return">
|
1362
|
+
|
1363
|
+
<li>
|
1364
|
+
|
1365
|
+
|
1366
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1367
|
+
|
1368
|
+
|
1369
|
+
|
1370
|
+
</li>
|
1371
|
+
|
1372
|
+
</ul>
|
1373
|
+
|
1374
|
+
</div><table class="source_code">
|
1375
|
+
<tr>
|
1376
|
+
<td>
|
1377
|
+
<pre class="lines">
|
1378
|
+
|
1379
|
+
|
1380
|
+
67
|
1381
|
+
68
|
1382
|
+
69</pre>
|
1383
|
+
</td>
|
1384
|
+
<td>
|
1385
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 67</span>
|
1386
|
+
|
1387
|
+
<span class='kw'>def</span> <span class='id pn'>pn</span>
|
1388
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='const'>CHART_PN</span> <span class='op'>%</span> <span class='lparen'>(</span><span class='id index'>index</span><span class='op'>+</span><span class='int'>1</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
1389
|
+
<span class='kw'>end</span></pre>
|
1452
1390
|
</td>
|
1453
1391
|
</tr>
|
1454
1392
|
</table>
|
@@ -1463,11 +1401,10 @@ markers
|
|
1463
1401
|
|
1464
1402
|
</p><div class="docstring">
|
1465
1403
|
<div class="discussion">
|
1466
|
-
|
1467
|
-
This is a short cut method to set the start anchor position If you need
|
1404
|
+
|
1405
|
+
<p>This is a short cut method to set the start anchor position If you need
|
1468
1406
|
finer granularity in positioning use graphic_frame.anchor.from.colOff /
|
1469
|
-
rowOff
|
1470
|
-
</p>
|
1407
|
+
rowOff</p>
|
1471
1408
|
|
1472
1409
|
|
1473
1410
|
</div>
|
@@ -1486,9 +1423,8 @@ rowOff
|
|
1486
1423
|
|
1487
1424
|
|
1488
1425
|
—
|
1489
|
-
<div class='inline'
|
1490
|
-
The column
|
1491
|
-
</p>
|
1426
|
+
<div class='inline'>
|
1427
|
+
<p>The column</p>
|
1492
1428
|
</div>
|
1493
1429
|
|
1494
1430
|
</li>
|
@@ -1503,9 +1439,8 @@ The column
|
|
1503
1439
|
|
1504
1440
|
|
1505
1441
|
—
|
1506
|
-
<div class='inline'
|
1507
|
-
The row
|
1508
|
-
</p>
|
1442
|
+
<div class='inline'>
|
1443
|
+
<p>The row</p>
|
1509
1444
|
</div>
|
1510
1445
|
|
1511
1446
|
</li>
|
@@ -1532,19 +1467,18 @@ The row
|
|
1532
1467
|
<pre class="lines">
|
1533
1468
|
|
1534
1469
|
|
1535
|
-
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1470
|
+
143
|
1471
|
+
144
|
1472
|
+
145
|
1473
|
+
146</pre>
|
1539
1474
|
</td>
|
1540
1475
|
<td>
|
1541
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
1476
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 143</span>
|
1542
1477
|
|
1543
|
-
<span class='
|
1544
|
-
<span class='
|
1545
|
-
<span class='
|
1546
|
-
<span class='
|
1547
|
-
</pre>
|
1478
|
+
<span class='kw'>def</span> <span class='id start_at'>start_at</span><span class='lparen'>(</span><span class='id x'>x</span><span class='comma'>,</span> <span class='id y'>y</span><span class='rparen'>)</span>
|
1479
|
+
<span class='ivar'>@graphic_frame</span><span class='period'>.</span><span class='id anchor'>anchor</span><span class='period'>.</span><span class='id from'>from</span><span class='period'>.</span><span class='id col'>col</span> <span class='op'>=</span> <span class='id x'>x</span>
|
1480
|
+
<span class='ivar'>@graphic_frame</span><span class='period'>.</span><span class='id anchor'>anchor</span><span class='period'>.</span><span class='id from'>from</span><span class='period'>.</span><span class='id row'>row</span> <span class='op'>=</span> <span class='id y'>y</span>
|
1481
|
+
<span class='kw'>end</span></pre>
|
1548
1482
|
</td>
|
1549
1483
|
</tr>
|
1550
1484
|
</table>
|
@@ -1562,16 +1496,14 @@ The row
|
|
1562
1496
|
|
1563
1497
|
<div class="note notetag">
|
1564
1498
|
<strong>Note:</strong>
|
1565
|
-
<div class='inline'
|
1566
|
-
This will be disconinued in version 2.0.0. Please use the end_at method
|
1567
|
-
</p>
|
1499
|
+
<div class='inline'>
|
1500
|
+
<p>This will be disconinued in version 2.0.0. Please use the end_at method</p>
|
1568
1501
|
</div>
|
1569
1502
|
</div>
|
1570
1503
|
|
1571
|
-
|
1572
|
-
backwards compatibility to allow chart.to and chart.from access to anchor
|
1573
|
-
markers
|
1574
|
-
</p>
|
1504
|
+
|
1505
|
+
<p>backwards compatibility to allow chart.to and chart.from access to anchor
|
1506
|
+
markers</p>
|
1575
1507
|
|
1576
1508
|
|
1577
1509
|
</div>
|
@@ -1585,17 +1517,16 @@ markers
|
|
1585
1517
|
<pre class="lines">
|
1586
1518
|
|
1587
1519
|
|
1588
|
-
|
1589
|
-
|
1590
|
-
|
1520
|
+
93
|
1521
|
+
94
|
1522
|
+
95</pre>
|
1591
1523
|
</td>
|
1592
1524
|
<td>
|
1593
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
1525
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 93</span>
|
1594
1526
|
|
1595
|
-
<span class='
|
1596
|
-
<span class='
|
1597
|
-
<span class='
|
1598
|
-
</pre>
|
1527
|
+
<span class='kw'>def</span> <span class='id to'>to</span>
|
1528
|
+
<span class='ivar'>@graphic_frame</span><span class='period'>.</span><span class='id anchor'>anchor</span><span class='period'>.</span><span class='id to'>to</span>
|
1529
|
+
<span class='kw'>end</span></pre>
|
1599
1530
|
</td>
|
1600
1531
|
</tr>
|
1601
1532
|
</table>
|
@@ -1610,9 +1541,8 @@ markers
|
|
1610
1541
|
|
1611
1542
|
</p><div class="docstring">
|
1612
1543
|
<div class="discussion">
|
1613
|
-
|
1614
|
-
Chart Serialization serializes the chart
|
1615
|
-
</p>
|
1544
|
+
|
1545
|
+
<p>Chart Serialization serializes the chart</p>
|
1616
1546
|
|
1617
1547
|
|
1618
1548
|
</div>
|
@@ -1626,12 +1556,6 @@ Chart Serialization serializes the chart
|
|
1626
1556
|
<pre class="lines">
|
1627
1557
|
|
1628
1558
|
|
1629
|
-
107
|
1630
|
-
108
|
1631
|
-
109
|
1632
|
-
110
|
1633
|
-
111
|
1634
|
-
112
|
1635
1559
|
113
|
1636
1560
|
114
|
1637
1561
|
115
|
@@ -1648,35 +1572,40 @@ Chart Serialization serializes the chart
|
|
1648
1572
|
126
|
1649
1573
|
127
|
1650
1574
|
128
|
1651
|
-
129
|
1575
|
+
129
|
1576
|
+
130
|
1577
|
+
131
|
1578
|
+
132
|
1579
|
+
133
|
1580
|
+
134
|
1581
|
+
135</pre>
|
1652
1582
|
</td>
|
1653
1583
|
<td>
|
1654
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
1655
|
-
|
1656
|
-
<span class='
|
1657
|
-
<span class='builder
|
1658
|
-
<span class='xml
|
1659
|
-
<span class='xml
|
1660
|
-
<span class='xml
|
1661
|
-
<span class='xml
|
1662
|
-
<span class='
|
1663
|
-
<span class='
|
1664
|
-
<span class='xml
|
1665
|
-
<span class='xml
|
1666
|
-
<span class='
|
1667
|
-
<span class='rbrace
|
1668
|
-
<span class='
|
1669
|
-
<span class='xml
|
1670
|
-
<span class='xml
|
1671
|
-
<span class='xml
|
1672
|
-
<span class='rbrace
|
1673
|
-
<span class='
|
1674
|
-
<span class='rbrace
|
1675
|
-
<span class='rbrace
|
1676
|
-
<span class='
|
1677
|
-
<span class='builder
|
1678
|
-
<span class='
|
1679
|
-
</pre>
|
1584
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 113</span>
|
1585
|
+
|
1586
|
+
<span class='kw'>def</span> <span class='id to_xml'>to_xml</span>
|
1587
|
+
<span class='id builder'>builder</span> <span class='op'>=</span> <span class='const'>Nokogiri</span><span class='op'>::</span><span class='const'>XML</span><span class='op'>::</span><span class='const'>Builder</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='symbol'>:encoding</span> <span class='op'>=></span> <span class='const'>ENCODING</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id xml'>xml</span><span class='op'>|</span>
|
1588
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c:chartSpace</span><span class='tstring_end'>'</span></span><span class='comma'>,</span><span class='symbol'>:xmlns:c</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='const'>XML_NS_C</span><span class='comma'>,</span> <span class='symbol'>:xmlns:a</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='const'>XML_NS_A</span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
1589
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c:date1904</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:val</span><span class='op'>=></span><span class='const'>Axlsx</span><span class='op'>::</span><span class='const'>Workbook</span><span class='period'>.</span><span class='id date1904'>date1904</span><span class='rparen'>)</span>
|
1590
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c:style</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:val</span><span class='op'>=></span><span class='id style'>style</span><span class='rparen'>)</span>
|
1591
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c:chart</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
1592
|
+
<span class='ivar'>@title</span><span class='period'>.</span><span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@title</span><span class='period'>.</span><span class='id nil?'>nil?</span>
|
1593
|
+
<span class='ivar'>@view3D</span><span class='period'>.</span><span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@view3D</span><span class='period'>.</span><span class='id nil?'>nil?</span>
|
1594
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c:plotArea</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
1595
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c:layout</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
1596
|
+
<span class='kw'>yield</span> <span class='id xml'>xml</span> <span class='kw'>if</span> <span class='id block_given?'>block_given?</span>
|
1597
|
+
<span class='rbrace'>}</span>
|
1598
|
+
<span class='kw'>if</span> <span class='ivar'>@show_legend</span>
|
1599
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c:legend</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
1600
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c:legendPos</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:val</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>r</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1601
|
+
<span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c:layout</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
1602
|
+
<span class='rbrace'>}</span>
|
1603
|
+
<span class='kw'>end</span>
|
1604
|
+
<span class='rbrace'>}</span>
|
1605
|
+
<span class='rbrace'>}</span>
|
1606
|
+
<span class='kw'>end</span>
|
1607
|
+
<span class='id builder'>builder</span><span class='period'>.</span><span class='id to_xml'>to_xml</span>
|
1608
|
+
<span class='kw'>end</span></pre>
|
1680
1609
|
</td>
|
1681
1610
|
</tr>
|
1682
1611
|
</table>
|
@@ -1687,9 +1616,9 @@ Chart Serialization serializes the chart
|
|
1687
1616
|
</div>
|
1688
1617
|
|
1689
1618
|
<div id="footer">
|
1690
|
-
Generated on
|
1619
|
+
Generated on Sat Nov 26 13:16:36 2011 by
|
1691
1620
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1692
|
-
0.7.3 (ruby-1.
|
1621
|
+
0.7.3 (ruby-1.9.3).
|
1693
1622
|
</div>
|
1694
1623
|
|
1695
1624
|
</body>
|