axlsx 1.0.8 → 1.0.9
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 +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/Pie3DChart.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Axlsx::Pie3DChart
|
|
8
8
|
|
|
9
|
-
—
|
|
9
|
+
— AXLSX
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -96,10 +96,9 @@
|
|
|
96
96
|
|
|
97
97
|
<h2>Overview</h2><div class="docstring">
|
|
98
98
|
<div class="discussion">
|
|
99
|
-
|
|
100
|
-
The Pie3DChart is a three dimentional piechart (who would have guessed?)
|
|
101
|
-
that you can add to your worksheet
|
|
102
|
-
</p>
|
|
99
|
+
|
|
100
|
+
<p>The Pie3DChart is a three dimentional piechart (who would have guessed?)
|
|
101
|
+
that you can add to your worksheet.</p>
|
|
103
102
|
|
|
104
103
|
|
|
105
104
|
</div>
|
|
@@ -132,7 +131,7 @@ that you can add to your worksheet.
|
|
|
132
131
|
<h2>Instance Attribute Summary</h2>
|
|
133
132
|
|
|
134
133
|
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Chart.html" title="Axlsx::Chart (class)">Chart</a></span></h3>
|
|
135
|
-
<p class="inherited"><span class='object_link'><a href="Chart.html#graphic_frame-instance_method" title="Axlsx::Chart#graphic_frame (method)">graphic_frame</a></span>, <span class='object_link'><a href="Chart.html#
|
|
134
|
+
<p class="inherited"><span class='object_link'><a href="Chart.html#graphic_frame-instance_method" title="Axlsx::Chart#graphic_frame (method)">graphic_frame</a></span>, <span class='object_link'><a href="Chart.html#series-instance_method" title="Axlsx::Chart#series (method)">series</a></span>, <span class='object_link'><a href="Chart.html#series_type-instance_method" title="Axlsx::Chart#series_type (method)">series_type</a></span>, <span class='object_link'><a href="Chart.html#show_legend-instance_method" title="Axlsx::Chart#show_legend (method)">show_legend</a></span>, <span class='object_link'><a href="Chart.html#style-instance_method" title="Axlsx::Chart#style (method)">style</a></span>, <span class='object_link'><a href="Chart.html#title-instance_method" title="Axlsx::Chart#title (method)">title</a></span>, <span class='object_link'><a href="Chart.html#view3D-instance_method" title="Axlsx::Chart#view3D (method)">view3D</a></span></p>
|
|
136
135
|
|
|
137
136
|
|
|
138
137
|
|
|
@@ -161,9 +160,8 @@ that you can add to your worksheet.
|
|
|
161
160
|
|
|
162
161
|
|
|
163
162
|
|
|
164
|
-
<span class="summary_desc"><div class='inline'
|
|
165
|
-
Creates a new pie chart object
|
|
166
|
-
</p>
|
|
163
|
+
<span class="summary_desc"><div class='inline'>
|
|
164
|
+
<p>Creates a new pie chart object.</p>
|
|
167
165
|
</div></span>
|
|
168
166
|
|
|
169
167
|
</li>
|
|
@@ -185,9 +183,8 @@ Creates a new pie chart object.
|
|
|
185
183
|
|
|
186
184
|
|
|
187
185
|
|
|
188
|
-
<span class="summary_desc"><div class='inline'
|
|
189
|
-
Serializes the pie chart
|
|
190
|
-
</p>
|
|
186
|
+
<span class="summary_desc"><div class='inline'>
|
|
187
|
+
<p>Serializes the pie chart.</p>
|
|
191
188
|
</div></span>
|
|
192
189
|
|
|
193
190
|
</li>
|
|
@@ -205,7 +202,7 @@ Serializes the pie chart.
|
|
|
205
202
|
|
|
206
203
|
|
|
207
204
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Chart.html" title="Axlsx::Chart (class)">Chart</a></span></h3>
|
|
208
|
-
<p class="inherited"><span class='object_link'><a href="Chart.html#add_series-instance_method" title="Axlsx::Chart#add_series (method)">#add_series</a></span>, <span class='object_link'><a href="Chart.html#end_at-instance_method" title="Axlsx::Chart#end_at (method)">#end_at</a></span>, <span class='object_link'><a href="Chart.html#from-instance_method" title="Axlsx::Chart#from (method)">#from</a></span>, <span class='object_link'><a href="Chart.html#start_at-instance_method" title="Axlsx::Chart#start_at (method)">#start_at</a></span>, <span class='object_link'><a href="Chart.html#to-instance_method" title="Axlsx::Chart#to (method)">#to</a></span></p>
|
|
205
|
+
<p class="inherited"><span class='object_link'><a href="Chart.html#add_series-instance_method" title="Axlsx::Chart#add_series (method)">#add_series</a></span>, <span class='object_link'><a href="Chart.html#end_at-instance_method" title="Axlsx::Chart#end_at (method)">#end_at</a></span>, <span class='object_link'><a href="Chart.html#from-instance_method" title="Axlsx::Chart#from (method)">#from</a></span>, <span class='object_link'><a href="Chart.html#index-instance_method" title="Axlsx::Chart#index (method)">#index</a></span>, <span class='object_link'><a href="Chart.html#pn-instance_method" title="Axlsx::Chart#pn (method)">#pn</a></span>, <span class='object_link'><a href="Chart.html#start_at-instance_method" title="Axlsx::Chart#start_at (method)">#start_at</a></span>, <span class='object_link'><a href="Chart.html#to-instance_method" title="Axlsx::Chart#to (method)">#to</a></span></p>
|
|
209
206
|
<div id="constructor_details" class="method_details_list">
|
|
210
207
|
<h2>Constructor Details</h2>
|
|
211
208
|
|
|
@@ -218,9 +215,8 @@ Serializes the pie chart.
|
|
|
218
215
|
|
|
219
216
|
</p><div class="docstring">
|
|
220
217
|
<div class="discussion">
|
|
221
|
-
|
|
222
|
-
Creates a new pie chart object
|
|
223
|
-
</p>
|
|
218
|
+
|
|
219
|
+
<p>Creates a new pie chart object</p>
|
|
224
220
|
|
|
225
221
|
|
|
226
222
|
</div>
|
|
@@ -239,9 +235,8 @@ Creates a new pie chart object
|
|
|
239
235
|
|
|
240
236
|
|
|
241
237
|
—
|
|
242
|
-
<div class='inline'
|
|
243
|
-
The workbook that owns this chart
|
|
244
|
-
</p>
|
|
238
|
+
<div class='inline'>
|
|
239
|
+
<p>The workbook that owns this chart.</p>
|
|
245
240
|
</div>
|
|
246
241
|
|
|
247
242
|
</li>
|
|
@@ -258,9 +253,8 @@ The workbook that owns this chart.
|
|
|
258
253
|
|
|
259
254
|
|
|
260
255
|
—
|
|
261
|
-
<div class='inline'
|
|
262
|
-
a customizable set of options
|
|
263
|
-
</p>
|
|
256
|
+
<div class='inline'>
|
|
257
|
+
<p>a customizable set of options</p>
|
|
264
258
|
</div>
|
|
265
259
|
|
|
266
260
|
</li>
|
|
@@ -393,12 +387,11 @@ a customizable set of options
|
|
|
393
387
|
<td>
|
|
394
388
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pie_3D_chart.rb', line 24</span>
|
|
395
389
|
|
|
396
|
-
<span class='
|
|
397
|
-
<span class='
|
|
398
|
-
<span class='
|
|
399
|
-
<span class='
|
|
400
|
-
<span class='
|
|
401
|
-
</pre>
|
|
390
|
+
<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>
|
|
391
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id frame'>frame</span><span class='comma'>,</span> <span class='id options'>options</span><span class='rparen'>)</span>
|
|
392
|
+
<span class='ivar'>@series_type</span> <span class='op'>=</span> <span class='const'>PieSeries</span>
|
|
393
|
+
<span class='ivar'>@view3D</span> <span class='op'>=</span> <span class='const'>View3D</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='symbol'>:rotX</span><span class='op'>=></span><span class='int'>30</span><span class='comma'>,</span> <span class='symbol'>:perspective</span><span class='op'>=></span><span class='int'>30</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id merge'>merge</span><span class='lparen'>(</span><span class='id options'>options</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
394
|
+
<span class='kw'>end</span></pre>
|
|
402
395
|
</td>
|
|
403
396
|
</tr>
|
|
404
397
|
</table>
|
|
@@ -420,9 +413,8 @@ a customizable set of options
|
|
|
420
413
|
|
|
421
414
|
</p><div class="docstring">
|
|
422
415
|
<div class="discussion">
|
|
423
|
-
|
|
424
|
-
Serializes the pie chart
|
|
425
|
-
</p>
|
|
416
|
+
|
|
417
|
+
<p>Serializes the pie chart</p>
|
|
426
418
|
|
|
427
419
|
|
|
428
420
|
</div>
|
|
@@ -461,15 +453,14 @@ Serializes the pie chart
|
|
|
461
453
|
<td>
|
|
462
454
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pie_3D_chart.rb', line 32</span>
|
|
463
455
|
|
|
464
|
-
<span class='
|
|
465
|
-
<span class='
|
|
466
|
-
<span class='xml
|
|
467
|
-
<span class='xml
|
|
468
|
-
<span class='
|
|
469
|
-
<span class='rbrace
|
|
470
|
-
<span class='
|
|
471
|
-
<span class='
|
|
472
|
-
</pre>
|
|
456
|
+
<span class='kw'>def</span> <span class='id to_xml'>to_xml</span>
|
|
457
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id xml'>xml</span><span class='op'>|</span>
|
|
458
|
+
<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:pie3DChart</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
459
|
+
<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:varyColors</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:val</span><span class='op'>=></span><span class='int'>1</span><span class='rparen'>)</span>
|
|
460
|
+
<span class='ivar'>@series</span><span class='period'>.</span><span class='id each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id ser'>ser</span><span class='op'>|</span> <span class='id ser'>ser</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='rbrace'>}</span>
|
|
461
|
+
<span class='rbrace'>}</span>
|
|
462
|
+
<span class='kw'>end</span>
|
|
463
|
+
<span class='kw'>end</span></pre>
|
|
473
464
|
</td>
|
|
474
465
|
</tr>
|
|
475
466
|
</table>
|
|
@@ -480,9 +471,9 @@ Serializes the pie chart
|
|
|
480
471
|
</div>
|
|
481
472
|
|
|
482
473
|
<div id="footer">
|
|
483
|
-
Generated on
|
|
474
|
+
Generated on Sat Nov 26 13:16:38 2011 by
|
|
484
475
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
485
|
-
0.7.3 (ruby-1.
|
|
476
|
+
0.7.3 (ruby-1.9.3).
|
|
486
477
|
</div>
|
|
487
478
|
|
|
488
479
|
</body>
|
data/doc/Axlsx/PieSeries.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: Axlsx::PieSeries
|
|
8
8
|
|
|
9
|
-
—
|
|
9
|
+
— AXLSX
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -99,16 +99,14 @@
|
|
|
99
99
|
|
|
100
100
|
<div class="note notetag">
|
|
101
101
|
<strong>Note:</strong>
|
|
102
|
-
<div class='inline'
|
|
103
|
-
The recommended way to manage series is to use Chart#add_series
|
|
104
|
-
</p>
|
|
102
|
+
<div class='inline'>
|
|
103
|
+
<p>The recommended way to manage series is to use Chart#add_series</p>
|
|
105
104
|
</div>
|
|
106
105
|
</div>
|
|
107
106
|
|
|
108
|
-
|
|
109
|
-
A PieSeries defines the data and labels and explosion for pie charts
|
|
110
|
-
series
|
|
111
|
-
</p>
|
|
107
|
+
|
|
108
|
+
<p>A PieSeries defines the data and labels and explosion for pie charts
|
|
109
|
+
series.</p>
|
|
112
110
|
|
|
113
111
|
|
|
114
112
|
</div>
|
|
@@ -153,9 +151,8 @@ series.
|
|
|
153
151
|
|
|
154
152
|
|
|
155
153
|
|
|
156
|
-
<span class="summary_desc"><div class='inline'
|
|
157
|
-
The data for this series
|
|
158
|
-
</p>
|
|
154
|
+
<span class="summary_desc"><div class='inline'>
|
|
155
|
+
<p>The data for this series.</p>
|
|
159
156
|
</div></span>
|
|
160
157
|
|
|
161
158
|
</li>
|
|
@@ -180,9 +177,8 @@ The data for this series.
|
|
|
180
177
|
|
|
181
178
|
|
|
182
179
|
|
|
183
|
-
<span class="summary_desc"><div class='inline'
|
|
184
|
-
The explosion for this series
|
|
185
|
-
</p>
|
|
180
|
+
<span class="summary_desc"><div class='inline'>
|
|
181
|
+
<p>The explosion for this series.</p>
|
|
186
182
|
</div></span>
|
|
187
183
|
|
|
188
184
|
</li>
|
|
@@ -207,9 +203,8 @@ The explosion for this series.
|
|
|
207
203
|
|
|
208
204
|
|
|
209
205
|
|
|
210
|
-
<span class="summary_desc"><div class='inline'
|
|
211
|
-
The labels for this series
|
|
212
|
-
</p>
|
|
206
|
+
<span class="summary_desc"><div class='inline'>
|
|
207
|
+
<p>The labels for this series.</p>
|
|
213
208
|
</div></span>
|
|
214
209
|
|
|
215
210
|
</li>
|
|
@@ -225,7 +220,7 @@ The labels for this series.
|
|
|
225
220
|
|
|
226
221
|
|
|
227
222
|
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Series.html" title="Axlsx::Series (class)">Series</a></span></h3>
|
|
228
|
-
<p class="inherited"><span class='object_link'><a href="Series.html#chart-instance_method" title="Axlsx::Series#chart (method)">chart</a></span>, <span class='object_link'><a href="Series.html#
|
|
223
|
+
<p class="inherited"><span class='object_link'><a href="Series.html#chart-instance_method" title="Axlsx::Series#chart (method)">chart</a></span>, <span class='object_link'><a href="Series.html#title-instance_method" title="Axlsx::Series#title (method)">title</a></span></p>
|
|
229
224
|
|
|
230
225
|
|
|
231
226
|
|
|
@@ -254,9 +249,8 @@ The labels for this series.
|
|
|
254
249
|
|
|
255
250
|
|
|
256
251
|
|
|
257
|
-
<span class="summary_desc"><div class='inline'
|
|
258
|
-
Creates a new series
|
|
259
|
-
</p>
|
|
252
|
+
<span class="summary_desc"><div class='inline'>
|
|
253
|
+
<p>Creates a new series.</p>
|
|
260
254
|
</div></span>
|
|
261
255
|
|
|
262
256
|
</li>
|
|
@@ -278,9 +272,8 @@ Creates a new series.
|
|
|
278
272
|
|
|
279
273
|
|
|
280
274
|
|
|
281
|
-
<span class="summary_desc"><div class='inline'
|
|
282
|
-
Serializes the series
|
|
283
|
-
</p>
|
|
275
|
+
<span class="summary_desc"><div class='inline'>
|
|
276
|
+
<p>Serializes the series.</p>
|
|
284
277
|
</div></span>
|
|
285
278
|
|
|
286
279
|
</li>
|
|
@@ -294,7 +287,12 @@ Serializes the series.
|
|
|
294
287
|
|
|
295
288
|
|
|
296
289
|
|
|
297
|
-
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Series.html" title="Axlsx::Series (class)">Series</a></span></h3>
|
|
294
|
+
<p class="inherited"><span class='object_link'><a href="Series.html#index-instance_method" title="Axlsx::Series#index (method)">#index</a></span>, <span class='object_link'><a href="Series.html#order-instance_method" title="Axlsx::Series#order (method)">#order</a></span>, <span class='object_link'><a href="Series.html#order%3D-instance_method" title="Axlsx::Series#order= (method)">#order=</a></span></p>
|
|
295
|
+
<div id="constructor_details" class="method_details_list">
|
|
298
296
|
<h2>Constructor Details</h2>
|
|
299
297
|
|
|
300
298
|
<div class="method_details first">
|
|
@@ -306,9 +304,8 @@ Serializes the series.
|
|
|
306
304
|
|
|
307
305
|
</p><div class="docstring">
|
|
308
306
|
<div class="discussion">
|
|
309
|
-
|
|
310
|
-
Creates a new series
|
|
311
|
-
</p>
|
|
307
|
+
|
|
308
|
+
<p>Creates a new series</p>
|
|
312
309
|
|
|
313
310
|
|
|
314
311
|
</div>
|
|
@@ -340,9 +337,8 @@ Creates a new series
|
|
|
340
337
|
|
|
341
338
|
|
|
342
339
|
—
|
|
343
|
-
<div class='inline'
|
|
344
|
-
a customizable set of options
|
|
345
|
-
</p>
|
|
340
|
+
<div class='inline'>
|
|
341
|
+
<p>a customizable set of options</p>
|
|
346
342
|
</div>
|
|
347
343
|
|
|
348
344
|
</li>
|
|
@@ -407,17 +403,18 @@ a customizable set of options
|
|
|
407
403
|
27
|
|
408
404
|
28
|
|
409
405
|
29
|
|
410
|
-
30
|
|
406
|
+
30
|
|
407
|
+
31</pre>
|
|
411
408
|
</td>
|
|
412
409
|
<td>
|
|
413
410
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pie_series.rb', line 26</span>
|
|
414
411
|
|
|
415
|
-
<span class='
|
|
416
|
-
<span class='
|
|
417
|
-
<span class='
|
|
418
|
-
<span class='
|
|
419
|
-
<span class='
|
|
420
|
-
</pre>
|
|
412
|
+
<span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id chart'>chart</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>
|
|
413
|
+
<span class='ivar'>@explosion</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
|
414
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id chart'>chart</span><span class='comma'>,</span> <span class='id options'>options</span><span class='rparen'>)</span>
|
|
415
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id labels'>labels</span> <span class='op'>=</span> <span class='const'>CatAxisData</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:labels</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:labels</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id nil?'>nil?</span>
|
|
416
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id data'>data</span> <span class='op'>=</span> <span class='const'>ValAxisData</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:data</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:data</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id nil?'>nil?</span>
|
|
417
|
+
<span class='kw'>end</span></pre>
|
|
421
418
|
</td>
|
|
422
419
|
</tr>
|
|
423
420
|
</table>
|
|
@@ -440,9 +437,8 @@ a customizable set of options
|
|
|
440
437
|
|
|
441
438
|
</p><div class="docstring">
|
|
442
439
|
<div class="discussion">
|
|
443
|
-
|
|
444
|
-
The data for this series
|
|
445
|
-
</p>
|
|
440
|
+
|
|
441
|
+
<p>The data for this series.</p>
|
|
446
442
|
|
|
447
443
|
|
|
448
444
|
</div>
|
|
@@ -476,10 +472,9 @@ The data for this series.
|
|
|
476
472
|
<td>
|
|
477
473
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pie_series.rb', line 10</span>
|
|
478
474
|
|
|
479
|
-
<span class='
|
|
480
|
-
<span class='
|
|
481
|
-
<span class='
|
|
482
|
-
</pre>
|
|
475
|
+
<span class='kw'>def</span> <span class='id data'>data</span>
|
|
476
|
+
<span class='ivar'>@data</span>
|
|
477
|
+
<span class='kw'>end</span></pre>
|
|
483
478
|
</td>
|
|
484
479
|
</tr>
|
|
485
480
|
</table>
|
|
@@ -497,9 +492,8 @@ The data for this series.
|
|
|
497
492
|
|
|
498
493
|
</p><div class="docstring">
|
|
499
494
|
<div class="discussion">
|
|
500
|
-
|
|
501
|
-
The explosion for this series
|
|
502
|
-
</p>
|
|
495
|
+
|
|
496
|
+
<p>The explosion for this series</p>
|
|
503
497
|
|
|
504
498
|
|
|
505
499
|
</div>
|
|
@@ -533,10 +527,9 @@ The explosion for this series
|
|
|
533
527
|
<td>
|
|
534
528
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pie_series.rb', line 18</span>
|
|
535
529
|
|
|
536
|
-
<span class='
|
|
537
|
-
<span class='
|
|
538
|
-
<span class='
|
|
539
|
-
</pre>
|
|
530
|
+
<span class='kw'>def</span> <span class='id explosion'>explosion</span>
|
|
531
|
+
<span class='ivar'>@explosion</span>
|
|
532
|
+
<span class='kw'>end</span></pre>
|
|
540
533
|
</td>
|
|
541
534
|
</tr>
|
|
542
535
|
</table>
|
|
@@ -554,9 +547,8 @@ The explosion for this series
|
|
|
554
547
|
|
|
555
548
|
</p><div class="docstring">
|
|
556
549
|
<div class="discussion">
|
|
557
|
-
|
|
558
|
-
The labels for this series
|
|
559
|
-
</p>
|
|
550
|
+
|
|
551
|
+
<p>The labels for this series.</p>
|
|
560
552
|
|
|
561
553
|
|
|
562
554
|
</div>
|
|
@@ -590,10 +582,9 @@ The labels for this series.
|
|
|
590
582
|
<td>
|
|
591
583
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pie_series.rb', line 14</span>
|
|
592
584
|
|
|
593
|
-
<span class='
|
|
594
|
-
<span class='
|
|
595
|
-
<span class='
|
|
596
|
-
</pre>
|
|
585
|
+
<span class='kw'>def</span> <span class='id labels'>labels</span>
|
|
586
|
+
<span class='ivar'>@labels</span>
|
|
587
|
+
<span class='kw'>end</span></pre>
|
|
597
588
|
</td>
|
|
598
589
|
</tr>
|
|
599
590
|
</table>
|
|
@@ -615,9 +606,8 @@ The labels for this series.
|
|
|
615
606
|
|
|
616
607
|
</p><div class="docstring">
|
|
617
608
|
<div class="discussion">
|
|
618
|
-
|
|
619
|
-
Serializes the series
|
|
620
|
-
</p>
|
|
609
|
+
|
|
610
|
+
<p>Serializes the series</p>
|
|
621
611
|
|
|
622
612
|
|
|
623
613
|
</div>
|
|
@@ -636,9 +626,8 @@ Serializes the series
|
|
|
636
626
|
|
|
637
627
|
|
|
638
628
|
—
|
|
639
|
-
<div class='inline'
|
|
640
|
-
The document builder instance this objects xml will be added to
|
|
641
|
-
</p>
|
|
629
|
+
<div class='inline'>
|
|
630
|
+
<p>The document builder instance this objects xml will be added to.</p>
|
|
642
631
|
</div>
|
|
643
632
|
|
|
644
633
|
</li>
|
|
@@ -665,25 +654,24 @@ The document builder instance this objects xml will be added to.
|
|
|
665
654
|
<pre class="lines">
|
|
666
655
|
|
|
667
656
|
|
|
668
|
-
37
|
|
669
|
-
38
|
|
670
657
|
39
|
|
671
658
|
40
|
|
672
659
|
41
|
|
673
660
|
42
|
|
674
|
-
43
|
|
661
|
+
43
|
|
662
|
+
44
|
|
663
|
+
45</pre>
|
|
675
664
|
</td>
|
|
676
665
|
<td>
|
|
677
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pie_series.rb', line
|
|
678
|
-
|
|
679
|
-
<span class='
|
|
680
|
-
<span class='
|
|
681
|
-
<span class='
|
|
682
|
-
<span class='
|
|
683
|
-
<span class='
|
|
684
|
-
<span class='
|
|
685
|
-
<span class='
|
|
686
|
-
</pre>
|
|
666
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pie_series.rb', line 39</span>
|
|
667
|
+
|
|
668
|
+
<span class='kw'>def</span> <span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span>
|
|
669
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id xml_inner'>xml_inner</span><span class='op'>|</span>
|
|
670
|
+
<span class='id xml_inner'>xml_inner</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:explosion</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:val</span><span class='op'>=></span><span class='ivar'>@explosion</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@explosion</span><span class='period'>.</span><span class='id nil?'>nil?</span>
|
|
671
|
+
<span class='ivar'>@labels</span><span class='period'>.</span><span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml_inner'>xml_inner</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@labels</span><span class='period'>.</span><span class='id nil?'>nil?</span>
|
|
672
|
+
<span class='ivar'>@data</span><span class='period'>.</span><span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml_inner'>xml_inner</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@data</span><span class='period'>.</span><span class='id nil?'>nil?</span>
|
|
673
|
+
<span class='kw'>end</span>
|
|
674
|
+
<span class='kw'>end</span></pre>
|
|
687
675
|
</td>
|
|
688
676
|
</tr>
|
|
689
677
|
</table>
|
|
@@ -694,9 +682,9 @@ The document builder instance this objects xml will be added to.
|
|
|
694
682
|
</div>
|
|
695
683
|
|
|
696
684
|
<div id="footer">
|
|
697
|
-
Generated on
|
|
685
|
+
Generated on Sat Nov 26 13:16:38 2011 by
|
|
698
686
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
699
|
-
0.7.3 (ruby-1.
|
|
687
|
+
0.7.3 (ruby-1.9.3).
|
|
700
688
|
</div>
|
|
701
689
|
|
|
702
690
|
</body>
|