axlsx 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +32 -0
- data/README.md +34 -35
- data/Rakefile +19 -8
- data/doc/Axlsx.html +4 -4
- data/doc/Axlsx/App.html +1 -1
- data/doc/Axlsx/Axis.html +45 -19
- data/doc/Axlsx/Bar3DChart.html +134 -107
- data/doc/Axlsx/BarSeries.html +6 -64
- data/doc/Axlsx/Border.html +1 -1
- data/doc/Axlsx/BorderPr.html +1 -1
- data/doc/Axlsx/CatAxis.html +34 -31
- data/doc/Axlsx/CatAxisData.html +400 -0
- data/doc/Axlsx/Cell.html +1 -1
- data/doc/Axlsx/CellAlignment.html +1 -1
- data/doc/Axlsx/CellProtection.html +1 -1
- data/doc/Axlsx/CellStyle.html +1 -1
- data/doc/Axlsx/Chart.html +449 -212
- data/doc/Axlsx/Color.html +1 -1
- data/doc/Axlsx/ContentType.html +2 -2
- data/doc/Axlsx/Core.html +1 -1
- data/doc/Axlsx/DataTypeValidator.html +1 -1
- data/doc/Axlsx/Default.html +1 -1
- data/doc/Axlsx/Drawing.html +65 -91
- data/doc/Axlsx/Fill.html +1 -1
- data/doc/Axlsx/Font.html +1 -1
- data/doc/Axlsx/GradientFill.html +1 -1
- data/doc/Axlsx/GradientStop.html +1 -1
- data/doc/Axlsx/GraphicFrame.html +7 -5
- data/doc/Axlsx/Line3DChart.html +109 -28
- data/doc/Axlsx/LineSeries.html +17 -73
- data/doc/Axlsx/Marker.html +1 -1
- data/doc/Axlsx/NumFmt.html +1 -1
- data/doc/Axlsx/Override.html +1 -1
- data/doc/Axlsx/Package.html +1 -1
- data/doc/Axlsx/PatternFill.html +1 -1
- data/doc/Axlsx/Pie3DChart.html +118 -66
- data/doc/Axlsx/PieSeries.html +30 -89
- data/doc/Axlsx/RegexValidator.html +1 -1
- data/doc/Axlsx/Relationship.html +1 -1
- data/doc/Axlsx/Relationships.html +2 -2
- data/doc/Axlsx/RestrictionValidator.html +1 -1
- data/doc/Axlsx/Row.html +1 -1
- data/doc/Axlsx/Scaling.html +1 -1
- data/doc/Axlsx/SerAxis.html +52 -37
- data/doc/Axlsx/Series.html +25 -10
- data/doc/Axlsx/SeriesTitle.html +3 -2
- data/doc/Axlsx/SimpleTypedList.html +86 -17
- data/doc/Axlsx/Styles.html +1 -1
- data/doc/Axlsx/TableStyle.html +2 -2
- data/doc/Axlsx/TableStyleElement.html +1 -1
- data/doc/Axlsx/TableStyles.html +2 -2
- data/doc/Axlsx/Title.html +1 -1
- data/doc/Axlsx/TwoCellAnchor.html +40 -280
- data/doc/Axlsx/ValAxis.html +7 -8
- data/doc/Axlsx/ValAxisData.html +326 -0
- data/doc/Axlsx/View3D.html +39 -39
- data/doc/Axlsx/Workbook.html +1 -1
- data/doc/Axlsx/Worksheet.html +84 -39
- data/doc/Axlsx/Xf.html +1 -1
- data/doc/_index.html +15 -1
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +30 -49
- data/doc/index.html +30 -49
- data/doc/method_list.html +448 -416
- data/doc/top-level-namespace.html +1 -1
- data/examples/#example.rb# +87 -0
- data/examples/example.rb +4 -1
- data/examples/multi_chart.xlsx +0 -0
- data/lib/axlsx/drawing/#bar_series.rb# +62 -0
- data/lib/axlsx/drawing/axis.rb +7 -6
- data/lib/axlsx/drawing/bar_3D_chart.rb +12 -30
- data/lib/axlsx/drawing/bar_series.rb +6 -35
- data/lib/axlsx/drawing/cat_axis.rb +8 -10
- data/lib/axlsx/drawing/cat_axis_data.rb +34 -0
- data/lib/axlsx/drawing/cat_axis_data.rb~ +28 -0
- data/lib/axlsx/drawing/chart.rb +48 -21
- data/lib/axlsx/drawing/drawing.rb +14 -12
- data/lib/axlsx/drawing/graphic_frame.rb +1 -0
- data/lib/axlsx/drawing/line_3D_chart.rb +11 -1
- data/lib/axlsx/drawing/line_series.rb +10 -40
- data/lib/axlsx/drawing/pie_3D_chart.rb +17 -34
- data/lib/axlsx/drawing/pie_series.rb +11 -45
- data/lib/axlsx/drawing/ser_axis.rb +13 -14
- data/lib/axlsx/drawing/series.rb +2 -3
- data/lib/axlsx/drawing/series_title.rb +1 -1
- data/lib/axlsx/drawing/two_cell_anchor.rb +10 -34
- data/lib/axlsx/drawing/val_axis.rb +4 -4
- data/lib/axlsx/drawing/val_axis_data.rb +28 -0
- data/lib/axlsx/drawing/val_axis_data.rb~ +29 -0
- data/lib/axlsx/drawing/view_3D.rb +12 -6
- data/lib/axlsx/util/constants.rb +0 -3
- data/lib/axlsx/util/simple_typed_list.rb +7 -2
- data/lib/axlsx/version.rb +4 -0
- data/lib/axlsx/workbook/worksheet/worksheet.rb +9 -1
- data/test/drawing/tc_axis.rb +1 -0
- data/test/drawing/tc_cat_axis_data.rb +18 -0
- data/test/drawing/tc_cat_axis_data.rb~ +32 -0
- data/test/drawing/tc_chart.rb +12 -0
- data/test/drawing/tc_line_series.rb +27 -0
- data/test/drawing/{tc_line_series.tc → tc_line_series.rb~} +0 -0
- data/test/drawing/tc_ser_axis.rb +13 -5
- data/test/drawing/tc_two_cell_anchor.rb +18 -17
- data/test/drawing/tc_val_axis.rb +5 -0
- data/test/drawing/tc_val_axis_data.rb +18 -0
- data/test/drawing/tc_val_axis_data.rb~ +18 -0
- data/test/drawing/tc_view_3D.rb +10 -1
- data/test/tc_package.rb +13 -13
- metadata +21 -6
data/doc/Axlsx/Cell.html
CHANGED
|
@@ -1614,7 +1614,7 @@ xml text for the cell
|
|
|
1614
1614
|
</div>
|
|
1615
1615
|
|
|
1616
1616
|
<div id="footer">
|
|
1617
|
-
Generated on
|
|
1617
|
+
Generated on Wed Nov 23 12:30:17 2011 by
|
|
1618
1618
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1619
1619
|
0.7.3 (ruby-1.8.7).
|
|
1620
1620
|
</div>
|
|
@@ -1238,7 +1238,7 @@ The document builder instance this objects xml will be added to.
|
|
|
1238
1238
|
</div>
|
|
1239
1239
|
|
|
1240
1240
|
<div id="footer">
|
|
1241
|
-
Generated on
|
|
1241
|
+
Generated on Wed Nov 23 12:30:24 2011 by
|
|
1242
1242
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1243
1243
|
0.7.3 (ruby-1.8.7).
|
|
1244
1244
|
</div>
|
|
@@ -556,7 +556,7 @@ The document builder instance this objects xml will be added to.
|
|
|
556
556
|
</div>
|
|
557
557
|
|
|
558
558
|
<div id="footer">
|
|
559
|
-
Generated on
|
|
559
|
+
Generated on Wed Nov 23 12:30:30 2011 by
|
|
560
560
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
561
561
|
0.7.3 (ruby-1.8.7).
|
|
562
562
|
</div>
|
data/doc/Axlsx/CellStyle.html
CHANGED
|
@@ -940,7 +940,7 @@ The document builder instance this objects xml will be added to.
|
|
|
940
940
|
</div>
|
|
941
941
|
|
|
942
942
|
<div id="footer">
|
|
943
|
-
Generated on
|
|
943
|
+
Generated on Wed Nov 23 12:30:31 2011 by
|
|
944
944
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
945
945
|
0.7.3 (ruby-1.8.7).
|
|
946
946
|
</div>
|
data/doc/Axlsx/Chart.html
CHANGED
|
@@ -114,6 +114,13 @@ A Chart is the superclass for specific charts
|
|
|
114
114
|
<div class="tags">
|
|
115
115
|
|
|
116
116
|
|
|
117
|
+
<h3>See Also:</h3>
|
|
118
|
+
<ul class="see">
|
|
119
|
+
|
|
120
|
+
<li>for examples</li>
|
|
121
|
+
|
|
122
|
+
</ul>
|
|
123
|
+
|
|
117
124
|
</div><div id="subclasses">
|
|
118
125
|
<h2>Direct Known Subclasses</h2>
|
|
119
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>
|
|
@@ -126,14 +133,14 @@ A Chart is the superclass for specific charts
|
|
|
126
133
|
<li class="public ">
|
|
127
134
|
<span class="summary_signature">
|
|
128
135
|
|
|
129
|
-
<a href="#
|
|
136
|
+
<a href="#graphic_frame-instance_method" title="#graphic_frame (instance method)">- (GraphicFrame) <strong>graphic_frame</strong> </a>
|
|
130
137
|
|
|
131
138
|
|
|
132
139
|
|
|
133
140
|
</span>
|
|
134
141
|
|
|
135
142
|
|
|
136
|
-
|
|
143
|
+
<span class="note title readonly">readonly</span>
|
|
137
144
|
|
|
138
145
|
|
|
139
146
|
|
|
@@ -143,7 +150,7 @@ A Chart is the superclass for specific charts
|
|
|
143
150
|
|
|
144
151
|
|
|
145
152
|
<span class="summary_desc"><div class='inline'><p>
|
|
146
|
-
|
|
153
|
+
A reference to the graphic frame that owns this chart.
|
|
147
154
|
</p>
|
|
148
155
|
</div></span>
|
|
149
156
|
|
|
@@ -153,7 +160,7 @@ The ending marker for this chart.
|
|
|
153
160
|
<li class="public ">
|
|
154
161
|
<span class="summary_signature">
|
|
155
162
|
|
|
156
|
-
<a href="#
|
|
163
|
+
<a href="#index-instance_method" title="#index (instance method)">- (Integer) <strong>index</strong> </a>
|
|
157
164
|
|
|
158
165
|
|
|
159
166
|
|
|
@@ -170,7 +177,7 @@ The ending marker for this chart.
|
|
|
170
177
|
|
|
171
178
|
|
|
172
179
|
<span class="summary_desc"><div class='inline'><p>
|
|
173
|
-
|
|
180
|
+
The index of this chart in the workbooks charts collection.
|
|
174
181
|
</p>
|
|
175
182
|
</div></span>
|
|
176
183
|
|
|
@@ -180,7 +187,7 @@ A reference to the graphic frame that owns this chart.
|
|
|
180
187
|
<li class="public ">
|
|
181
188
|
<span class="summary_signature">
|
|
182
189
|
|
|
183
|
-
<a href="#
|
|
190
|
+
<a href="#pn-instance_method" title="#pn (instance method)">- (String) <strong>pn</strong> </a>
|
|
184
191
|
|
|
185
192
|
|
|
186
193
|
|
|
@@ -197,7 +204,7 @@ A reference to the graphic frame that owns this chart.
|
|
|
197
204
|
|
|
198
205
|
|
|
199
206
|
<span class="summary_desc"><div class='inline'><p>
|
|
200
|
-
The
|
|
207
|
+
The part name for this chart.
|
|
201
208
|
</p>
|
|
202
209
|
</div></span>
|
|
203
210
|
|
|
@@ -207,7 +214,7 @@ The index of this chart in the workbooks charts collection.
|
|
|
207
214
|
<li class="public ">
|
|
208
215
|
<span class="summary_signature">
|
|
209
216
|
|
|
210
|
-
<a href="#
|
|
217
|
+
<a href="#series-instance_method" title="#series (instance method)">- (SimpleTypedList) <strong>series</strong> </a>
|
|
211
218
|
|
|
212
219
|
|
|
213
220
|
|
|
@@ -224,7 +231,7 @@ The index of this chart in the workbooks charts collection.
|
|
|
224
231
|
|
|
225
232
|
|
|
226
233
|
<span class="summary_desc"><div class='inline'><p>
|
|
227
|
-
|
|
234
|
+
A collection of series objects that are applied to the chart.
|
|
228
235
|
</p>
|
|
229
236
|
</div></span>
|
|
230
237
|
|
|
@@ -234,7 +241,7 @@ The part name for this chart.
|
|
|
234
241
|
<li class="public ">
|
|
235
242
|
<span class="summary_signature">
|
|
236
243
|
|
|
237
|
-
<a href="#
|
|
244
|
+
<a href="#series_type-instance_method" title="#series_type (instance method)">- (Series) <strong>series_type</strong> </a>
|
|
238
245
|
|
|
239
246
|
|
|
240
247
|
|
|
@@ -251,7 +258,7 @@ The part name for this chart.
|
|
|
251
258
|
|
|
252
259
|
|
|
253
260
|
<span class="summary_desc"><div class='inline'><p>
|
|
254
|
-
|
|
261
|
+
The type of series to use for this chart.
|
|
255
262
|
</p>
|
|
256
263
|
</div></span>
|
|
257
264
|
|
|
@@ -261,14 +268,14 @@ A collection of series objects that are applied to the chart.
|
|
|
261
268
|
<li class="public ">
|
|
262
269
|
<span class="summary_signature">
|
|
263
270
|
|
|
264
|
-
<a href="#
|
|
271
|
+
<a href="#show_legend-instance_method" title="#show_legend (instance method)">- (Boolean) <strong>show_legend</strong> </a>
|
|
265
272
|
|
|
266
273
|
|
|
267
274
|
|
|
268
275
|
</span>
|
|
269
276
|
|
|
270
277
|
|
|
271
|
-
|
|
278
|
+
|
|
272
279
|
|
|
273
280
|
|
|
274
281
|
|
|
@@ -278,7 +285,7 @@ A collection of series objects that are applied to the chart.
|
|
|
278
285
|
|
|
279
286
|
|
|
280
287
|
<span class="summary_desc"><div class='inline'><p>
|
|
281
|
-
|
|
288
|
+
Show the legend in the chart.
|
|
282
289
|
</p>
|
|
283
290
|
</div></span>
|
|
284
291
|
|
|
@@ -288,7 +295,7 @@ The type of series to use for this chart.
|
|
|
288
295
|
<li class="public ">
|
|
289
296
|
<span class="summary_signature">
|
|
290
297
|
|
|
291
|
-
<a href="#
|
|
298
|
+
<a href="#style-instance_method" title="#style (instance method)">- (Integer) <strong>style</strong> </a>
|
|
292
299
|
|
|
293
300
|
|
|
294
301
|
|
|
@@ -305,7 +312,7 @@ The type of series to use for this chart.
|
|
|
305
312
|
|
|
306
313
|
|
|
307
314
|
<span class="summary_desc"><div class='inline'><p>
|
|
308
|
-
|
|
315
|
+
The style for the chart.
|
|
309
316
|
</p>
|
|
310
317
|
</div></span>
|
|
311
318
|
|
|
@@ -315,7 +322,7 @@ Show the legend in the chart.
|
|
|
315
322
|
<li class="public ">
|
|
316
323
|
<span class="summary_signature">
|
|
317
324
|
|
|
318
|
-
<a href="#
|
|
325
|
+
<a href="#title-instance_method" title="#title (instance method)">- (Title) <strong>title</strong> </a>
|
|
319
326
|
|
|
320
327
|
|
|
321
328
|
|
|
@@ -332,7 +339,7 @@ Show the legend in the chart.
|
|
|
332
339
|
|
|
333
340
|
|
|
334
341
|
<span class="summary_desc"><div class='inline'><p>
|
|
335
|
-
The
|
|
342
|
+
The title object for the chart.
|
|
336
343
|
</p>
|
|
337
344
|
</div></span>
|
|
338
345
|
|
|
@@ -342,7 +349,7 @@ The starting marker for this chart.
|
|
|
342
349
|
<li class="public ">
|
|
343
350
|
<span class="summary_signature">
|
|
344
351
|
|
|
345
|
-
<a href="#
|
|
352
|
+
<a href="#view3D-instance_method" title="#view3D (instance method)">- (Object) <strong>view3D</strong> </a>
|
|
346
353
|
|
|
347
354
|
|
|
348
355
|
|
|
@@ -359,26 +366,36 @@ The starting marker for this chart.
|
|
|
359
366
|
|
|
360
367
|
|
|
361
368
|
<span class="summary_desc"><div class='inline'><p>
|
|
362
|
-
The
|
|
369
|
+
The 3D view properties for the chart.
|
|
363
370
|
</p>
|
|
364
371
|
</div></span>
|
|
365
372
|
|
|
366
373
|
</li>
|
|
367
374
|
|
|
368
375
|
|
|
369
|
-
|
|
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
|
+
|
|
389
|
+
<li class="public ">
|
|
370
390
|
<span class="summary_signature">
|
|
371
391
|
|
|
372
|
-
<a href="#
|
|
392
|
+
<a href="#add_series-instance_method" title="#add_series (instance method)">- (Series) <strong>add_series</strong>(options = {}) </a>
|
|
373
393
|
|
|
374
394
|
|
|
375
395
|
|
|
376
396
|
</span>
|
|
377
397
|
|
|
378
398
|
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
399
|
|
|
383
400
|
|
|
384
401
|
|
|
@@ -386,25 +403,47 @@ The style for the chart.
|
|
|
386
403
|
|
|
387
404
|
|
|
388
405
|
<span class="summary_desc"><div class='inline'><p>
|
|
389
|
-
|
|
406
|
+
Adds a new series to the chart’s series collection.
|
|
390
407
|
</p>
|
|
391
408
|
</div></span>
|
|
392
409
|
|
|
393
410
|
</li>
|
|
394
411
|
|
|
395
|
-
|
|
396
|
-
|
|
412
|
+
|
|
413
|
+
<li class="public ">
|
|
397
414
|
<span class="summary_signature">
|
|
398
415
|
|
|
399
|
-
<a href="#
|
|
416
|
+
<a href="#end_at-instance_method" title="#end_at (instance method)">- (Marker) <strong>end_at</strong>(x, y) </a>
|
|
400
417
|
|
|
401
418
|
|
|
402
419
|
|
|
403
420
|
</span>
|
|
404
421
|
|
|
405
422
|
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
<span class="summary_desc"><div class='inline'><p>
|
|
430
|
+
This is a short cut method to set the end anchor position If you need finer
|
|
431
|
+
granularity in positioning use graphic_frame.anchor.to.colOff / rowOff.
|
|
432
|
+
</p>
|
|
433
|
+
</div></span>
|
|
434
|
+
|
|
435
|
+
</li>
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
<li class="public ">
|
|
439
|
+
<span class="summary_signature">
|
|
406
440
|
|
|
441
|
+
<a href="#from-instance_method" title="#from (instance method)">- (Object) <strong>from</strong> </a>
|
|
442
|
+
|
|
443
|
+
|
|
407
444
|
|
|
445
|
+
</span>
|
|
446
|
+
|
|
408
447
|
|
|
409
448
|
|
|
410
449
|
|
|
@@ -413,30 +452,44 @@ The title object for the chart.
|
|
|
413
452
|
|
|
414
453
|
|
|
415
454
|
<span class="summary_desc"><div class='inline'><p>
|
|
416
|
-
|
|
455
|
+
backwards compatibility to allow chart.to and chart.from access to anchor
|
|
456
|
+
markers.
|
|
417
457
|
</p>
|
|
418
458
|
</div></span>
|
|
419
459
|
|
|
420
460
|
</li>
|
|
421
461
|
|
|
462
|
+
|
|
463
|
+
<li class="public ">
|
|
464
|
+
<span class="summary_signature">
|
|
465
|
+
|
|
466
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Chart) <strong>initialize</strong>(frame, options = {}) {|_self| ... }</a>
|
|
422
467
|
|
|
423
|
-
</ul>
|
|
424
|
-
|
|
425
|
-
|
|
426
468
|
|
|
469
|
+
|
|
470
|
+
</span>
|
|
471
|
+
|
|
472
|
+
<span class="note title constructor">constructor</span>
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
427
479
|
|
|
428
480
|
|
|
429
|
-
<
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
481
|
+
<span class="summary_desc"><div class='inline'><p>
|
|
482
|
+
Creates a new chart object.
|
|
483
|
+
</p>
|
|
484
|
+
</div></span>
|
|
485
|
+
|
|
486
|
+
</li>
|
|
433
487
|
|
|
434
|
-
<ul class="summary">
|
|
435
488
|
|
|
436
489
|
<li class="public ">
|
|
437
490
|
<span class="summary_signature">
|
|
438
491
|
|
|
439
|
-
<a href="#
|
|
492
|
+
<a href="#start_at-instance_method" title="#start_at (instance method)">- (Marker) <strong>start_at</strong>(x, y) </a>
|
|
440
493
|
|
|
441
494
|
|
|
442
495
|
|
|
@@ -450,7 +503,9 @@ The 3D view properties for the chart.
|
|
|
450
503
|
|
|
451
504
|
|
|
452
505
|
<span class="summary_desc"><div class='inline'><p>
|
|
453
|
-
|
|
506
|
+
This is a short cut method to set the start anchor position If you need
|
|
507
|
+
finer granularity in positioning use graphic_frame.anchor.from.colOff /
|
|
508
|
+
rowOff.
|
|
454
509
|
</p>
|
|
455
510
|
</div></span>
|
|
456
511
|
|
|
@@ -460,14 +515,12 @@ Adds a new series to the chart’s series collection.
|
|
|
460
515
|
<li class="public ">
|
|
461
516
|
<span class="summary_signature">
|
|
462
517
|
|
|
463
|
-
<a href="#
|
|
518
|
+
<a href="#to-instance_method" title="#to (instance method)">- (Object) <strong>to</strong> </a>
|
|
464
519
|
|
|
465
520
|
|
|
466
521
|
|
|
467
522
|
</span>
|
|
468
523
|
|
|
469
|
-
<span class="note title constructor">constructor</span>
|
|
470
|
-
|
|
471
524
|
|
|
472
525
|
|
|
473
526
|
|
|
@@ -476,7 +529,8 @@ Adds a new series to the chart’s series collection.
|
|
|
476
529
|
|
|
477
530
|
|
|
478
531
|
<span class="summary_desc"><div class='inline'><p>
|
|
479
|
-
|
|
532
|
+
backwards compatibility to allow chart.to and chart.from access to anchor
|
|
533
|
+
markers.
|
|
480
534
|
</p>
|
|
481
535
|
</div></span>
|
|
482
536
|
|
|
@@ -641,6 +695,12 @@ the object that the method was called on
|
|
|
641
695
|
<pre class="lines">
|
|
642
696
|
|
|
643
697
|
|
|
698
|
+
52
|
|
699
|
+
53
|
|
700
|
+
54
|
|
701
|
+
55
|
|
702
|
+
56
|
|
703
|
+
57
|
|
644
704
|
58
|
|
645
705
|
59
|
|
646
706
|
60
|
|
@@ -648,14 +708,10 @@ the object that the method was called on
|
|
|
648
708
|
62
|
|
649
709
|
63
|
|
650
710
|
64
|
|
651
|
-
65
|
|
652
|
-
66
|
|
653
|
-
67
|
|
654
|
-
68
|
|
655
|
-
69</pre>
|
|
711
|
+
65</pre>
|
|
656
712
|
</td>
|
|
657
713
|
<td>
|
|
658
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
|
714
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 52</span>
|
|
659
715
|
|
|
660
716
|
<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>
|
|
661
717
|
<span class='@style ivar id'>@style</span> <span class='assign token'>=</span> <span class='integer val'>2</span>
|
|
@@ -667,6 +723,8 @@ the object that the method was called on
|
|
|
667
723
|
<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>
|
|
668
724
|
<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'>"#{o[0]}="</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'>"#{o[0]}="</span>
|
|
669
725
|
<span class='end end kw'>end</span>
|
|
726
|
+
<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>
|
|
727
|
+
<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>
|
|
670
728
|
<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>
|
|
671
729
|
<span class='end end kw'>end</span>
|
|
672
730
|
</pre>
|
|
@@ -681,67 +739,10 @@ the object that the method was called on
|
|
|
681
739
|
<h2>Instance Attribute Details</h2>
|
|
682
740
|
|
|
683
741
|
|
|
684
|
-
<span id="end_at=-instance_method"></span>
|
|
685
|
-
<span id="end_at-instance_method"></span>
|
|
686
|
-
<div class="method_details first">
|
|
687
|
-
<p class="signature first" id="end_at-instance_method">
|
|
688
|
-
|
|
689
|
-
- (<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>) <strong>end_at</strong>
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
</p><div class="docstring">
|
|
694
|
-
<div class="discussion">
|
|
695
|
-
<p>
|
|
696
|
-
The ending marker for this chart
|
|
697
|
-
</p>
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
</div>
|
|
701
|
-
</div>
|
|
702
|
-
<div class="tags">
|
|
703
|
-
|
|
704
|
-
<h3>Returns:</h3>
|
|
705
|
-
<ul class="return">
|
|
706
|
-
|
|
707
|
-
<li>
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
<span class='type'>(<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>)</span>
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
</li>
|
|
715
|
-
|
|
716
|
-
</ul>
|
|
717
|
-
|
|
718
|
-
</div><table class="source_code">
|
|
719
|
-
<tr>
|
|
720
|
-
<td>
|
|
721
|
-
<pre class="lines">
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
48
|
|
725
|
-
49
|
|
726
|
-
50</pre>
|
|
727
|
-
</td>
|
|
728
|
-
<td>
|
|
729
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 48</span>
|
|
730
|
-
|
|
731
|
-
<span class='def def kw'>def</span> <span class='end_at identifier id'>end_at</span>
|
|
732
|
-
<span class='@end_at ivar id'>@end_at</span>
|
|
733
|
-
<span class='end end kw'>end</span>
|
|
734
|
-
</pre>
|
|
735
|
-
</td>
|
|
736
|
-
</tr>
|
|
737
|
-
</table>
|
|
738
|
-
</div>
|
|
739
|
-
|
|
740
|
-
|
|
741
742
|
<span id=""></span>
|
|
742
743
|
<span id="graphic_frame-instance_method"></span>
|
|
743
|
-
<div class="method_details ">
|
|
744
|
-
<p class="signature " id="graphic_frame-instance_method">
|
|
744
|
+
<div class="method_details first">
|
|
745
|
+
<p class="signature first" id="graphic_frame-instance_method">
|
|
745
746
|
|
|
746
747
|
- (<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>
|
|
747
748
|
|
|
@@ -778,12 +779,12 @@ A reference to the graphic frame that owns this chart
|
|
|
778
779
|
<pre class="lines">
|
|
779
780
|
|
|
780
781
|
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
782
|
+
14
|
|
783
|
+
15
|
|
784
|
+
16</pre>
|
|
784
785
|
</td>
|
|
785
786
|
<td>
|
|
786
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
|
787
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 14</span>
|
|
787
788
|
|
|
788
789
|
<span class='def def kw'>def</span> <span class='graphic_frame identifier id'>graphic_frame</span>
|
|
789
790
|
<span class='@graphic_frame ivar id'>@graphic_frame</span>
|
|
@@ -835,12 +836,12 @@ The index of this chart in the workbooks charts collection
|
|
|
835
836
|
<pre class="lines">
|
|
836
837
|
|
|
837
838
|
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
839
|
+
26
|
|
840
|
+
27
|
|
841
|
+
28</pre>
|
|
841
842
|
</td>
|
|
842
843
|
<td>
|
|
843
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
|
844
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 26</span>
|
|
844
845
|
|
|
845
846
|
<span class='def def kw'>def</span> <span class='index identifier id'>index</span>
|
|
846
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>
|
|
@@ -892,12 +893,12 @@ The part name for this chart
|
|
|
892
893
|
<pre class="lines">
|
|
893
894
|
|
|
894
895
|
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
896
|
+
30
|
|
897
|
+
31
|
|
898
|
+
32</pre>
|
|
898
899
|
</td>
|
|
899
900
|
<td>
|
|
900
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
|
901
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 30</span>
|
|
901
902
|
|
|
902
903
|
<span class='def def kw'>def</span> <span class='pn identifier id'>pn</span>
|
|
903
904
|
<span class='dstring node'>"#{CHART_PN % (index+1)}"</span>
|
|
@@ -949,12 +950,12 @@ A collection of series objects that are applied to the chart
|
|
|
949
950
|
<pre class="lines">
|
|
950
951
|
|
|
951
952
|
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
953
|
+
18
|
|
954
|
+
19
|
|
955
|
+
20</pre>
|
|
955
956
|
</td>
|
|
956
957
|
<td>
|
|
957
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
|
958
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 18</span>
|
|
958
959
|
|
|
959
960
|
<span class='def def kw'>def</span> <span class='series identifier id'>series</span>
|
|
960
961
|
<span class='@series ivar id'>@series</span>
|
|
@@ -978,7 +979,7 @@ A collection of series objects that are applied to the chart
|
|
|
978
979
|
</p><div class="docstring">
|
|
979
980
|
<div class="discussion">
|
|
980
981
|
<p>
|
|
981
|
-
The type of series to use for this chart
|
|
982
|
+
The type of series to use for this chart.
|
|
982
983
|
</p>
|
|
983
984
|
|
|
984
985
|
|
|
@@ -1006,12 +1007,12 @@ The type of series to use for this chart
|
|
|
1006
1007
|
<pre class="lines">
|
|
1007
1008
|
|
|
1008
1009
|
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1010
|
+
22
|
|
1011
|
+
23
|
|
1012
|
+
24</pre>
|
|
1012
1013
|
</td>
|
|
1013
1014
|
<td>
|
|
1014
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
|
1015
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 22</span>
|
|
1015
1016
|
|
|
1016
1017
|
<span class='def def kw'>def</span> <span class='series_type identifier id'>series_type</span>
|
|
1017
1018
|
<span class='@series_type ivar id'>@series_type</span>
|
|
@@ -1063,12 +1064,12 @@ Show the legend in the chart
|
|
|
1063
1064
|
<pre class="lines">
|
|
1064
1065
|
|
|
1065
1066
|
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1067
|
+
46
|
|
1068
|
+
47
|
|
1069
|
+
48</pre>
|
|
1069
1070
|
</td>
|
|
1070
1071
|
<td>
|
|
1071
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
|
1072
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 46</span>
|
|
1072
1073
|
|
|
1073
1074
|
<span class='def def kw'>def</span> <span class='show_legend identifier id'>show_legend</span>
|
|
1074
1075
|
<span class='@show_legend ivar id'>@show_legend</span>
|
|
@@ -1080,19 +1081,19 @@ Show the legend in the chart
|
|
|
1080
1081
|
</div>
|
|
1081
1082
|
|
|
1082
1083
|
|
|
1083
|
-
<span id="
|
|
1084
|
-
<span id="
|
|
1084
|
+
<span id="style=-instance_method"></span>
|
|
1085
|
+
<span id="style-instance_method"></span>
|
|
1085
1086
|
<div class="method_details ">
|
|
1086
|
-
<p class="signature " id="
|
|
1087
|
+
<p class="signature " id="style-instance_method">
|
|
1087
1088
|
|
|
1088
|
-
- (<tt
|
|
1089
|
+
- (<tt>Integer</tt>) <strong>style</strong>
|
|
1089
1090
|
|
|
1090
1091
|
|
|
1091
1092
|
|
|
1092
1093
|
</p><div class="docstring">
|
|
1093
1094
|
<div class="discussion">
|
|
1094
1095
|
<p>
|
|
1095
|
-
The
|
|
1096
|
+
The style for the chart. see ECMA Part 1 §21.2.2.196
|
|
1096
1097
|
</p>
|
|
1097
1098
|
|
|
1098
1099
|
|
|
@@ -1106,7 +1107,7 @@ The starting marker for this chart
|
|
|
1106
1107
|
<li>
|
|
1107
1108
|
|
|
1108
1109
|
|
|
1109
|
-
<span class='type'>(<tt
|
|
1110
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
|
1110
1111
|
|
|
1111
1112
|
|
|
1112
1113
|
|
|
@@ -1120,15 +1121,15 @@ The starting marker for this chart
|
|
|
1120
1121
|
<pre class="lines">
|
|
1121
1122
|
|
|
1122
1123
|
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1124
|
+
42
|
|
1125
|
+
43
|
|
1126
|
+
44</pre>
|
|
1126
1127
|
</td>
|
|
1127
1128
|
<td>
|
|
1128
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
|
1129
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 42</span>
|
|
1129
1130
|
|
|
1130
|
-
<span class='def def kw'>def</span> <span class='
|
|
1131
|
-
<span class='@
|
|
1131
|
+
<span class='def def kw'>def</span> <span class='style identifier id'>style</span>
|
|
1132
|
+
<span class='@style ivar id'>@style</span>
|
|
1132
1133
|
<span class='end end kw'>end</span>
|
|
1133
1134
|
</pre>
|
|
1134
1135
|
</td>
|
|
@@ -1137,19 +1138,19 @@ The starting marker for this chart
|
|
|
1137
1138
|
</div>
|
|
1138
1139
|
|
|
1139
1140
|
|
|
1140
|
-
<span id="
|
|
1141
|
-
<span id="
|
|
1141
|
+
<span id="title=-instance_method"></span>
|
|
1142
|
+
<span id="title-instance_method"></span>
|
|
1142
1143
|
<div class="method_details ">
|
|
1143
|
-
<p class="signature " id="
|
|
1144
|
+
<p class="signature " id="title-instance_method">
|
|
1144
1145
|
|
|
1145
|
-
- (<tt>
|
|
1146
|
+
- (<tt><span class='object_link'><a href="Title.html" title="Axlsx::Title (class)">Title</a></span></tt>) <strong>title</strong>
|
|
1146
1147
|
|
|
1147
1148
|
|
|
1148
1149
|
|
|
1149
1150
|
</p><div class="docstring">
|
|
1150
1151
|
<div class="discussion">
|
|
1151
1152
|
<p>
|
|
1152
|
-
The
|
|
1153
|
+
The title object for the chart.
|
|
1153
1154
|
</p>
|
|
1154
1155
|
|
|
1155
1156
|
|
|
@@ -1163,7 +1164,7 @@ The style for the chart. see ECMA Part 1 §21.2.2.196
|
|
|
1163
1164
|
<li>
|
|
1164
1165
|
|
|
1165
1166
|
|
|
1166
|
-
<span class='type'>(<tt>
|
|
1167
|
+
<span class='type'>(<tt><span class='object_link'><a href="Title.html" title="Axlsx::Title (class)">Title</a></span></tt>)</span>
|
|
1167
1168
|
|
|
1168
1169
|
|
|
1169
1170
|
|
|
@@ -1177,15 +1178,15 @@ The style for the chart. see ECMA Part 1 §21.2.2.196
|
|
|
1177
1178
|
<pre class="lines">
|
|
1178
1179
|
|
|
1179
1180
|
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1181
|
+
37
|
|
1182
|
+
38
|
|
1183
|
+
39</pre>
|
|
1183
1184
|
</td>
|
|
1184
1185
|
<td>
|
|
1185
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
|
1186
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 37</span>
|
|
1186
1187
|
|
|
1187
|
-
<span class='def def kw'>def</span> <span class='
|
|
1188
|
-
<span class='@
|
|
1188
|
+
<span class='def def kw'>def</span> <span class='title identifier id'>title</span>
|
|
1189
|
+
<span class='@title ivar id'>@title</span>
|
|
1189
1190
|
<span class='end end kw'>end</span>
|
|
1190
1191
|
</pre>
|
|
1191
1192
|
</td>
|
|
@@ -1194,19 +1195,67 @@ The style for the chart. see ECMA Part 1 §21.2.2.196
|
|
|
1194
1195
|
</div>
|
|
1195
1196
|
|
|
1196
1197
|
|
|
1197
|
-
<span id="
|
|
1198
|
-
<span id="
|
|
1198
|
+
<span id="view3D=-instance_method"></span>
|
|
1199
|
+
<span id="view3D-instance_method"></span>
|
|
1199
1200
|
<div class="method_details ">
|
|
1200
|
-
<p class="signature " id="
|
|
1201
|
+
<p class="signature " id="view3D-instance_method">
|
|
1201
1202
|
|
|
1202
|
-
- (<tt
|
|
1203
|
+
- (<tt>Object</tt>) <strong>view3D</strong>
|
|
1203
1204
|
|
|
1204
1205
|
|
|
1205
1206
|
|
|
1206
1207
|
</p><div class="docstring">
|
|
1207
1208
|
<div class="discussion">
|
|
1208
1209
|
<p>
|
|
1209
|
-
The
|
|
1210
|
+
The 3D view properties for the chart
|
|
1211
|
+
</p>
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
</div>
|
|
1215
|
+
</div>
|
|
1216
|
+
<div class="tags">
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
</div><table class="source_code">
|
|
1220
|
+
<tr>
|
|
1221
|
+
<td>
|
|
1222
|
+
<pre class="lines">
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
10
|
|
1226
|
+
11
|
|
1227
|
+
12</pre>
|
|
1228
|
+
</td>
|
|
1229
|
+
<td>
|
|
1230
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 10</span>
|
|
1231
|
+
|
|
1232
|
+
<span class='def def kw'>def</span> <span class='view3D identifier id'>view3D</span>
|
|
1233
|
+
<span class='@view3D ivar id'>@view3D</span>
|
|
1234
|
+
<span class='end end kw'>end</span>
|
|
1235
|
+
</pre>
|
|
1236
|
+
</td>
|
|
1237
|
+
</tr>
|
|
1238
|
+
</table>
|
|
1239
|
+
</div>
|
|
1240
|
+
|
|
1241
|
+
</div>
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
<div id="instance_method_details" class="method_details_list">
|
|
1245
|
+
<h2>Instance Method Details</h2>
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
<div class="method_details first">
|
|
1249
|
+
<p class="signature first" id="add_series-instance_method">
|
|
1250
|
+
|
|
1251
|
+
- (<tt><span class='object_link'><a href="Series.html" title="Axlsx::Series (class)">Series</a></span></tt>) <strong>add_series</strong>(options = {})
|
|
1252
|
+
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
</p><div class="docstring">
|
|
1256
|
+
<div class="discussion">
|
|
1257
|
+
<p>
|
|
1258
|
+
Adds a new series to the chart’s series collection.
|
|
1210
1259
|
</p>
|
|
1211
1260
|
|
|
1212
1261
|
|
|
@@ -1220,7 +1269,7 @@ The title object for the chart.
|
|
|
1220
1269
|
<li>
|
|
1221
1270
|
|
|
1222
1271
|
|
|
1223
|
-
<span class='type'>(<tt><span class='object_link'><a href="
|
|
1272
|
+
<span class='type'>(<tt><span class='object_link'><a href="Series.html" title="Axlsx::Series (class)">Series</a></span></tt>)</span>
|
|
1224
1273
|
|
|
1225
1274
|
|
|
1226
1275
|
|
|
@@ -1228,21 +1277,30 @@ The title object for the chart.
|
|
|
1228
1277
|
|
|
1229
1278
|
</ul>
|
|
1230
1279
|
|
|
1280
|
+
<h3>See Also:</h3>
|
|
1281
|
+
<ul class="see">
|
|
1282
|
+
|
|
1283
|
+
<li><span class='object_link'><a href="Series.html" title="Axlsx::Series (class)">Series</a></span></li>
|
|
1284
|
+
|
|
1285
|
+
</ul>
|
|
1286
|
+
|
|
1231
1287
|
</div><table class="source_code">
|
|
1232
1288
|
<tr>
|
|
1233
1289
|
<td>
|
|
1234
1290
|
<pre class="lines">
|
|
1235
1291
|
|
|
1236
1292
|
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1293
|
+
101
|
|
1294
|
+
102
|
|
1295
|
+
103
|
|
1296
|
+
104</pre>
|
|
1240
1297
|
</td>
|
|
1241
1298
|
<td>
|
|
1242
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
|
1299
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 101</span>
|
|
1243
1300
|
|
|
1244
|
-
<span class='def def kw'>def</span> <span class='
|
|
1245
|
-
<span class='@
|
|
1301
|
+
<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>
|
|
1302
|
+
<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>
|
|
1303
|
+
<span class='@series ivar id'>@series</span><span class='dot token'>.</span><span class='last identifier id'>last</span>
|
|
1246
1304
|
<span class='end end kw'>end</span>
|
|
1247
1305
|
</pre>
|
|
1248
1306
|
</td>
|
|
@@ -1250,27 +1308,76 @@ The title object for the chart.
|
|
|
1250
1308
|
</table>
|
|
1251
1309
|
</div>
|
|
1252
1310
|
|
|
1253
|
-
|
|
1254
|
-
<span id="view3D=-instance_method"></span>
|
|
1255
|
-
<span id="view3D-instance_method"></span>
|
|
1256
1311
|
<div class="method_details ">
|
|
1257
|
-
<p class="signature " id="
|
|
1312
|
+
<p class="signature " id="end_at-instance_method">
|
|
1258
1313
|
|
|
1259
|
-
- (<tt>
|
|
1314
|
+
- (<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>) <strong>end_at</strong>(x, y)
|
|
1260
1315
|
|
|
1261
1316
|
|
|
1262
1317
|
|
|
1263
1318
|
</p><div class="docstring">
|
|
1264
1319
|
<div class="discussion">
|
|
1265
1320
|
<p>
|
|
1266
|
-
|
|
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
|
|
1267
1323
|
</p>
|
|
1268
1324
|
|
|
1269
1325
|
|
|
1270
1326
|
</div>
|
|
1271
1327
|
</div>
|
|
1272
1328
|
<div class="tags">
|
|
1329
|
+
<h3>Parameters:</h3>
|
|
1330
|
+
<ul class="param">
|
|
1331
|
+
|
|
1332
|
+
<li>
|
|
1333
|
+
|
|
1334
|
+
<span class='name'>x</span>
|
|
1335
|
+
|
|
1336
|
+
|
|
1337
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
|
1338
|
+
|
|
1339
|
+
|
|
1340
|
+
|
|
1341
|
+
—
|
|
1342
|
+
<div class='inline'><p>
|
|
1343
|
+
The column
|
|
1344
|
+
</p>
|
|
1345
|
+
</div>
|
|
1346
|
+
|
|
1347
|
+
</li>
|
|
1348
|
+
|
|
1349
|
+
<li>
|
|
1350
|
+
|
|
1351
|
+
<span class='name'>y</span>
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
—
|
|
1359
|
+
<div class='inline'><p>
|
|
1360
|
+
The row
|
|
1361
|
+
</p>
|
|
1362
|
+
</div>
|
|
1363
|
+
|
|
1364
|
+
</li>
|
|
1273
1365
|
|
|
1366
|
+
</ul>
|
|
1367
|
+
|
|
1368
|
+
<h3>Returns:</h3>
|
|
1369
|
+
<ul class="return">
|
|
1370
|
+
|
|
1371
|
+
<li>
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
<span class='type'>(<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>)</span>
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
</li>
|
|
1379
|
+
|
|
1380
|
+
</ul>
|
|
1274
1381
|
|
|
1275
1382
|
</div><table class="source_code">
|
|
1276
1383
|
<tr>
|
|
@@ -1278,15 +1385,17 @@ The 3D view properties for the chart
|
|
|
1278
1385
|
<pre class="lines">
|
|
1279
1386
|
|
|
1280
1387
|
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1388
|
+
149
|
|
1389
|
+
150
|
|
1390
|
+
151
|
|
1391
|
+
152</pre>
|
|
1284
1392
|
</td>
|
|
1285
1393
|
<td>
|
|
1286
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
|
1394
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 149</span>
|
|
1287
1395
|
|
|
1288
|
-
<span class='def def kw'>def</span> <span class='
|
|
1289
|
-
<span class='@
|
|
1396
|
+
<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='rparen token'>)</span>
|
|
1397
|
+
<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>
|
|
1398
|
+
<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>
|
|
1290
1399
|
<span class='end end kw'>end</span>
|
|
1291
1400
|
</pre>
|
|
1292
1401
|
</td>
|
|
@@ -1294,38 +1403,122 @@ The 3D view properties for the chart
|
|
|
1294
1403
|
</table>
|
|
1295
1404
|
</div>
|
|
1296
1405
|
|
|
1406
|
+
<div class="method_details ">
|
|
1407
|
+
<p class="signature " id="from-instance_method">
|
|
1408
|
+
|
|
1409
|
+
- (<tt>Object</tt>) <strong>from</strong>
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
</p><div class="docstring">
|
|
1414
|
+
<div class="discussion">
|
|
1415
|
+
|
|
1416
|
+
<div class="note notetag">
|
|
1417
|
+
<strong>Note:</strong>
|
|
1418
|
+
<div class='inline'><p>
|
|
1419
|
+
This will be disconinued in version 2.0.0. please use the start_at method
|
|
1420
|
+
</p>
|
|
1421
|
+
</div>
|
|
1297
1422
|
</div>
|
|
1298
1423
|
|
|
1424
|
+
<p>
|
|
1425
|
+
backwards compatibility to allow chart.to and chart.from access to anchor
|
|
1426
|
+
markers
|
|
1427
|
+
</p>
|
|
1299
1428
|
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1429
|
+
|
|
1430
|
+
</div>
|
|
1431
|
+
</div>
|
|
1432
|
+
<div class="tags">
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
</div><table class="source_code">
|
|
1436
|
+
<tr>
|
|
1437
|
+
<td>
|
|
1438
|
+
<pre class="lines">
|
|
1439
|
+
|
|
1440
|
+
|
|
1441
|
+
94
|
|
1442
|
+
95
|
|
1443
|
+
96</pre>
|
|
1444
|
+
</td>
|
|
1445
|
+
<td>
|
|
1446
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 94</span>
|
|
1447
|
+
|
|
1448
|
+
<span class='def def kw'>def</span> <span class='from identifier id'>from</span>
|
|
1449
|
+
<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>
|
|
1450
|
+
<span class='end end kw'>end</span>
|
|
1451
|
+
</pre>
|
|
1452
|
+
</td>
|
|
1453
|
+
</tr>
|
|
1454
|
+
</table>
|
|
1455
|
+
</div>
|
|
1303
1456
|
|
|
1304
|
-
<div class="method_details
|
|
1305
|
-
<p class="signature
|
|
1457
|
+
<div class="method_details ">
|
|
1458
|
+
<p class="signature " id="start_at-instance_method">
|
|
1306
1459
|
|
|
1307
|
-
- (<tt><span class='object_link'><a href="
|
|
1460
|
+
- (<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>) <strong>start_at</strong>(x, y)
|
|
1308
1461
|
|
|
1309
1462
|
|
|
1310
1463
|
|
|
1311
1464
|
</p><div class="docstring">
|
|
1312
1465
|
<div class="discussion">
|
|
1313
1466
|
<p>
|
|
1314
|
-
|
|
1467
|
+
This is a short cut method to set the start anchor position If you need
|
|
1468
|
+
finer granularity in positioning use graphic_frame.anchor.from.colOff /
|
|
1469
|
+
rowOff
|
|
1315
1470
|
</p>
|
|
1316
1471
|
|
|
1317
1472
|
|
|
1318
1473
|
</div>
|
|
1319
1474
|
</div>
|
|
1320
1475
|
<div class="tags">
|
|
1476
|
+
<h3>Parameters:</h3>
|
|
1477
|
+
<ul class="param">
|
|
1321
1478
|
|
|
1479
|
+
<li>
|
|
1480
|
+
|
|
1481
|
+
<span class='name'>x</span>
|
|
1482
|
+
|
|
1483
|
+
|
|
1484
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
|
1485
|
+
|
|
1486
|
+
|
|
1487
|
+
|
|
1488
|
+
—
|
|
1489
|
+
<div class='inline'><p>
|
|
1490
|
+
The column
|
|
1491
|
+
</p>
|
|
1492
|
+
</div>
|
|
1493
|
+
|
|
1494
|
+
</li>
|
|
1495
|
+
|
|
1496
|
+
<li>
|
|
1497
|
+
|
|
1498
|
+
<span class='name'>y</span>
|
|
1499
|
+
|
|
1500
|
+
|
|
1501
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
|
1502
|
+
|
|
1503
|
+
|
|
1504
|
+
|
|
1505
|
+
—
|
|
1506
|
+
<div class='inline'><p>
|
|
1507
|
+
The row
|
|
1508
|
+
</p>
|
|
1509
|
+
</div>
|
|
1510
|
+
|
|
1511
|
+
</li>
|
|
1512
|
+
|
|
1513
|
+
</ul>
|
|
1514
|
+
|
|
1322
1515
|
<h3>Returns:</h3>
|
|
1323
1516
|
<ul class="return">
|
|
1324
1517
|
|
|
1325
1518
|
<li>
|
|
1326
1519
|
|
|
1327
1520
|
|
|
1328
|
-
<span class='type'>(<tt><span class='object_link'><a href="
|
|
1521
|
+
<span class='type'>(<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>)</span>
|
|
1329
1522
|
|
|
1330
1523
|
|
|
1331
1524
|
|
|
@@ -1333,12 +1526,58 @@ Adds a new series to the chart’s series collection.
|
|
|
1333
1526
|
|
|
1334
1527
|
</ul>
|
|
1335
1528
|
|
|
1336
|
-
|
|
1337
|
-
<
|
|
1529
|
+
</div><table class="source_code">
|
|
1530
|
+
<tr>
|
|
1531
|
+
<td>
|
|
1532
|
+
<pre class="lines">
|
|
1533
|
+
|
|
1534
|
+
|
|
1535
|
+
138
|
|
1536
|
+
139
|
|
1537
|
+
140
|
|
1538
|
+
141</pre>
|
|
1539
|
+
</td>
|
|
1540
|
+
<td>
|
|
1541
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 138</span>
|
|
1542
|
+
|
|
1543
|
+
<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='rparen token'>)</span>
|
|
1544
|
+
<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>
|
|
1545
|
+
<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>
|
|
1546
|
+
<span class='end end kw'>end</span>
|
|
1547
|
+
</pre>
|
|
1548
|
+
</td>
|
|
1549
|
+
</tr>
|
|
1550
|
+
</table>
|
|
1551
|
+
</div>
|
|
1338
1552
|
|
|
1339
|
-
<
|
|
1553
|
+
<div class="method_details ">
|
|
1554
|
+
<p class="signature " id="to-instance_method">
|
|
1555
|
+
|
|
1556
|
+
- (<tt>Object</tt>) <strong>to</strong>
|
|
1557
|
+
|
|
1558
|
+
|
|
1559
|
+
|
|
1560
|
+
</p><div class="docstring">
|
|
1561
|
+
<div class="discussion">
|
|
1340
1562
|
|
|
1341
|
-
|
|
1563
|
+
<div class="note notetag">
|
|
1564
|
+
<strong>Note:</strong>
|
|
1565
|
+
<div class='inline'><p>
|
|
1566
|
+
This will be disconinued in version 2.0.0. Please use the end_at method
|
|
1567
|
+
</p>
|
|
1568
|
+
</div>
|
|
1569
|
+
</div>
|
|
1570
|
+
|
|
1571
|
+
<p>
|
|
1572
|
+
backwards compatibility to allow chart.to and chart.from access to anchor
|
|
1573
|
+
markers
|
|
1574
|
+
</p>
|
|
1575
|
+
|
|
1576
|
+
|
|
1577
|
+
</div>
|
|
1578
|
+
</div>
|
|
1579
|
+
<div class="tags">
|
|
1580
|
+
|
|
1342
1581
|
|
|
1343
1582
|
</div><table class="source_code">
|
|
1344
1583
|
<tr>
|
|
@@ -1346,17 +1585,15 @@ Adds a new series to the chart’s series collection.
|
|
|
1346
1585
|
<pre class="lines">
|
|
1347
1586
|
|
|
1348
1587
|
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
97</pre>
|
|
1588
|
+
87
|
|
1589
|
+
88
|
|
1590
|
+
89</pre>
|
|
1353
1591
|
</td>
|
|
1354
1592
|
<td>
|
|
1355
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
|
1593
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 87</span>
|
|
1356
1594
|
|
|
1357
|
-
<span class='def def kw'>def</span> <span class='
|
|
1358
|
-
<span class='@
|
|
1359
|
-
<span class='@series ivar id'>@series</span><span class='dot token'>.</span><span class='last identifier id'>last</span>
|
|
1595
|
+
<span class='def def kw'>def</span> <span class='to identifier id'>to</span>
|
|
1596
|
+
<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>
|
|
1360
1597
|
<span class='end end kw'>end</span>
|
|
1361
1598
|
</pre>
|
|
1362
1599
|
</td>
|
|
@@ -1389,13 +1626,6 @@ Chart Serialization serializes the chart
|
|
|
1389
1626
|
<pre class="lines">
|
|
1390
1627
|
|
|
1391
1628
|
|
|
1392
|
-
101
|
|
1393
|
-
102
|
|
1394
|
-
103
|
|
1395
|
-
104
|
|
1396
|
-
105
|
|
1397
|
-
106
|
|
1398
|
-
107
|
|
1399
1629
|
108
|
|
1400
1630
|
109
|
|
1401
1631
|
110
|
|
@@ -1411,10 +1641,17 @@ Chart Serialization serializes the chart
|
|
|
1411
1641
|
120
|
|
1412
1642
|
121
|
|
1413
1643
|
122
|
|
1414
|
-
123
|
|
1644
|
+
123
|
|
1645
|
+
124
|
|
1646
|
+
125
|
|
1647
|
+
126
|
|
1648
|
+
127
|
|
1649
|
+
128
|
|
1650
|
+
129
|
|
1651
|
+
130</pre>
|
|
1415
1652
|
</td>
|
|
1416
1653
|
<td>
|
|
1417
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line
|
|
1654
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/chart.rb', line 108</span>
|
|
1418
1655
|
|
|
1419
1656
|
<span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span>
|
|
1420
1657
|
<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'>></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>
|
|
@@ -1450,7 +1687,7 @@ Chart Serialization serializes the chart
|
|
|
1450
1687
|
</div>
|
|
1451
1688
|
|
|
1452
1689
|
<div id="footer">
|
|
1453
|
-
Generated on
|
|
1690
|
+
Generated on Wed Nov 23 12:30:28 2011 by
|
|
1454
1691
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1455
1692
|
0.7.3 (ruby-1.8.7).
|
|
1456
1693
|
</div>
|