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/BarSeries.html
CHANGED
|
@@ -416,8 +416,8 @@ a customizable set of options
|
|
|
416
416
|
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='chart identifier id'>chart</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
|
417
417
|
<span class='@shape ivar id'>@shape</span> <span class='assign token'>=</span> <span class='symbol val'>:box</span>
|
|
418
418
|
<span class='super super kw'>super</span><span class='lparen token'>(</span><span class='chart identifier id'>chart</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span>
|
|
419
|
-
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='
|
|
420
|
-
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='
|
|
419
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='labels identifier id'>labels</span> <span class='assign token'>=</span> <span class='CatAxisData constant id'>CatAxisData</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:labels</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:labels</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
|
|
420
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='data identifier id'>data</span> <span class='assign token'>=</span> <span class='ValAxisData constant id'>ValAxisData</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:data</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:data</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
|
|
421
421
|
<span class='end end kw'>end</span>
|
|
422
422
|
</pre>
|
|
423
423
|
</td>
|
|
@@ -674,73 +674,15 @@ The document builder instance this objects xml will be added to.
|
|
|
674
674
|
46
|
|
675
675
|
47
|
|
676
676
|
48
|
|
677
|
-
49
|
|
678
|
-
50
|
|
679
|
-
51
|
|
680
|
-
52
|
|
681
|
-
53
|
|
682
|
-
54
|
|
683
|
-
55
|
|
684
|
-
56
|
|
685
|
-
57
|
|
686
|
-
58
|
|
687
|
-
59
|
|
688
|
-
60
|
|
689
|
-
61
|
|
690
|
-
62
|
|
691
|
-
63
|
|
692
|
-
64
|
|
693
|
-
65
|
|
694
|
-
66
|
|
695
|
-
67
|
|
696
|
-
68
|
|
697
|
-
69
|
|
698
|
-
70
|
|
699
|
-
71
|
|
700
|
-
72
|
|
701
|
-
73
|
|
702
|
-
74
|
|
703
|
-
75
|
|
704
|
-
76
|
|
705
|
-
77
|
|
706
|
-
78</pre>
|
|
677
|
+
49</pre>
|
|
707
678
|
</td>
|
|
708
679
|
<td>
|
|
709
680
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/bar_series.rb', line 43</span>
|
|
710
681
|
|
|
711
682
|
<span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span>
|
|
712
683
|
<span class='super super kw'>super</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='xml identifier id'>xml</span><span class='bitor op'>|</span>
|
|
713
|
-
<span class='
|
|
714
|
-
|
|
715
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:strRef'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
|
716
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:f'</span><span class='comma token'>,</span> <span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='cell_range identifier id'>cell_range</span><span class='lparen token'>(</span><span class='labels identifier id'>labels</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
|
|
717
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:strCache'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
|
718
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:ptCount'</span><span class='comma token'>,</span> <span class='symbol val'>:val=</span><span class='gt op'>></span><span class='labels identifier id'>labels</span><span class='dot token'>.</span><span class='size identifier id'>size</span><span class='rparen token'>)</span>
|
|
719
|
-
<span class='labels identifier id'>labels</span><span class='dot token'>.</span><span class='each_with_index identifier id'>each_with_index</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='cell identifier id'>cell</span><span class='comma token'>,</span> <span class='index identifier id'>index</span><span class='bitor op'>|</span>
|
|
720
|
-
<span class='v identifier id'>v</span> <span class='assign token'>=</span> <span class='cell identifier id'>cell</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='Cell constant id'>Cell</span><span class='rparen token'>)</span> <span class='question op'>?</span> <span class='cell identifier id'>cell</span><span class='dot token'>.</span><span class='value identifier id'>value</span> <span class='colon op'>:</span> <span class='cell identifier id'>cell</span>
|
|
721
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:pt'</span><span class='comma token'>,</span> <span class='symbol val'>:idx=</span><span class='gt op'>></span><span class='index identifier id'>index</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
|
722
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:v'</span><span class='comma token'>,</span> <span class='v identifier id'>v</span><span class='rparen token'>)</span>
|
|
723
|
-
<span class='rbrace token'>}</span>
|
|
724
|
-
<span class='end end kw'>end</span>
|
|
725
|
-
<span class='rbrace token'>}</span>
|
|
726
|
-
<span class='rbrace token'>}</span>
|
|
727
|
-
<span class='rbrace token'>}</span>
|
|
728
|
-
<span class='end end kw'>end</span>
|
|
729
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:val'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
|
730
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:numRef'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
|
731
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:f'</span><span class='comma token'>,</span> <span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='cell_range identifier id'>cell_range</span><span class='lparen token'>(</span><span class='data identifier id'>data</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
|
|
732
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:numCache'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
|
733
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:formatCode'</span><span class='comma token'>,</span> <span class='string val'>'General'</span><span class='rparen token'>)</span>
|
|
734
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:ptCount'</span><span class='comma token'>,</span> <span class='symbol val'>:val=</span><span class='gt op'>></span><span class='data identifier id'>data</span><span class='dot token'>.</span><span class='size identifier id'>size</span><span class='rparen token'>)</span>
|
|
735
|
-
<span class='data identifier id'>data</span><span class='dot token'>.</span><span class='each_with_index identifier id'>each_with_index</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='cell identifier id'>cell</span><span class='comma token'>,</span> <span class='index identifier id'>index</span><span class='bitor op'>|</span>
|
|
736
|
-
<span class='v identifier id'>v</span> <span class='assign token'>=</span> <span class='cell identifier id'>cell</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='Cell constant id'>Cell</span><span class='rparen token'>)</span> <span class='question op'>?</span> <span class='cell identifier id'>cell</span><span class='dot token'>.</span><span class='value identifier id'>value</span> <span class='colon op'>:</span> <span class='cell identifier id'>cell</span>
|
|
737
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:pt'</span><span class='comma token'>,</span> <span class='symbol val'>:idx=</span><span class='gt op'>></span><span class='index identifier id'>index</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
|
738
|
-
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:v'</span><span class='comma token'>,</span> <span class='v identifier id'>v</span><span class='rparen token'>)</span>
|
|
739
|
-
<span class='rbrace token'>}</span>
|
|
740
|
-
<span class='end end kw'>end</span>
|
|
741
|
-
<span class='rbrace token'>}</span>
|
|
742
|
-
<span class='rbrace token'>}</span>
|
|
743
|
-
<span class='rbrace token'>}</span>
|
|
684
|
+
<span class='@labels ivar id'>@labels</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='@labels ivar id'>@labels</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
|
|
685
|
+
<span class='@data ivar id'>@data</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='@data ivar id'>@data</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
|
|
744
686
|
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:shape'</span><span class='comma token'>,</span> <span class='symbol val'>:val=</span><span class='gt op'>></span><span class='@shape ivar id'>@shape</span><span class='rparen token'>)</span>
|
|
745
687
|
<span class='end end kw'>end</span>
|
|
746
688
|
<span class='end end kw'>end</span>
|
|
@@ -755,7 +697,7 @@ The document builder instance this objects xml will be added to.
|
|
|
755
697
|
</div>
|
|
756
698
|
|
|
757
699
|
<div id="footer">
|
|
758
|
-
Generated on
|
|
700
|
+
Generated on Wed Nov 23 12:30:13 2011 by
|
|
759
701
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
760
702
|
0.7.3 (ruby-1.8.7).
|
|
761
703
|
</div>
|
data/doc/Axlsx/Border.html
CHANGED
|
@@ -766,7 +766,7 @@ The document builder instance this objects xml will be added to.
|
|
|
766
766
|
</div>
|
|
767
767
|
|
|
768
768
|
<div id="footer">
|
|
769
|
-
Generated on
|
|
769
|
+
Generated on Wed Nov 23 12:30:25 2011 by
|
|
770
770
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
771
771
|
0.7.3 (ruby-1.8.7).
|
|
772
772
|
</div>
|
data/doc/Axlsx/BorderPr.html
CHANGED
|
@@ -700,7 +700,7 @@ The document builder instance this objects xml will be added to.
|
|
|
700
700
|
</div>
|
|
701
701
|
|
|
702
702
|
<div id="footer">
|
|
703
|
-
Generated on
|
|
703
|
+
Generated on Wed Nov 23 12:30:25 2011 by
|
|
704
704
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
705
705
|
0.7.3 (ruby-1.8.7).
|
|
706
706
|
</div>
|
data/doc/Axlsx/CatAxis.html
CHANGED
|
@@ -336,7 +336,7 @@ Creates a new CatAxis object
|
|
|
336
336
|
|
|
337
337
|
—
|
|
338
338
|
<div class='inline'><p>
|
|
339
|
-
the id of this axis
|
|
339
|
+
the id of this axis. Inherited
|
|
340
340
|
</p>
|
|
341
341
|
</div>
|
|
342
342
|
|
|
@@ -353,7 +353,7 @@ the id of this axis
|
|
|
353
353
|
|
|
354
354
|
—
|
|
355
355
|
<div class='inline'><p>
|
|
356
|
-
the id of the perpendicular axis
|
|
356
|
+
the id of the perpendicular axis. Inherited
|
|
357
357
|
</p>
|
|
358
358
|
</div>
|
|
359
359
|
|
|
@@ -391,30 +391,39 @@ a customizable set of options
|
|
|
391
391
|
<ul class="option">
|
|
392
392
|
|
|
393
393
|
<li>
|
|
394
|
-
<span class="name">axPos
|
|
394
|
+
<span class="name">axPos.</span>
|
|
395
395
|
<span class="type">(<tt>Symbol</tt>)</span>
|
|
396
396
|
<span class="default">
|
|
397
397
|
|
|
398
398
|
</span>
|
|
399
|
-
|
|
399
|
+
— <div class='inline'><p>
|
|
400
|
+
Inherited
|
|
401
|
+
</p>
|
|
402
|
+
</div>
|
|
400
403
|
</li>
|
|
401
404
|
|
|
402
405
|
<li>
|
|
403
|
-
<span class="name">tickLblPos
|
|
406
|
+
<span class="name">tickLblPos.</span>
|
|
404
407
|
<span class="type">(<tt>Symbol</tt>)</span>
|
|
405
408
|
<span class="default">
|
|
406
409
|
|
|
407
410
|
</span>
|
|
408
|
-
|
|
411
|
+
— <div class='inline'><p>
|
|
412
|
+
Inherited
|
|
413
|
+
</p>
|
|
414
|
+
</div>
|
|
409
415
|
</li>
|
|
410
416
|
|
|
411
417
|
<li>
|
|
412
|
-
<span class="name">crosses
|
|
418
|
+
<span class="name">crosses.</span>
|
|
413
419
|
<span class="type">(<tt>Symbol</tt>)</span>
|
|
414
420
|
<span class="default">
|
|
415
421
|
|
|
416
422
|
</span>
|
|
417
|
-
|
|
423
|
+
— <div class='inline'><p>
|
|
424
|
+
Inherited
|
|
425
|
+
</p>
|
|
426
|
+
</div>
|
|
418
427
|
</li>
|
|
419
428
|
|
|
420
429
|
<li>
|
|
@@ -454,27 +463,21 @@ a customizable set of options
|
|
|
454
463
|
<pre class="lines">
|
|
455
464
|
|
|
456
465
|
|
|
457
|
-
30
|
|
458
466
|
31
|
|
459
467
|
32
|
|
460
468
|
33
|
|
461
469
|
34
|
|
462
470
|
35
|
|
463
|
-
36
|
|
464
|
-
37
|
|
465
|
-
38</pre>
|
|
471
|
+
36</pre>
|
|
466
472
|
</td>
|
|
467
473
|
<td>
|
|
468
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/cat_axis.rb', line
|
|
474
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/cat_axis.rb', line 31</span>
|
|
469
475
|
|
|
470
476
|
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='axId identifier id'>axId</span><span class='comma token'>,</span> <span class='crossAx identifier id'>crossAx</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>
|
|
471
|
-
<span class='super super kw'>super</span><span class='lparen token'>(</span><span class='axId identifier id'>axId</span><span class='comma token'>,</span> <span class='crossAx identifier id'>crossAx</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span>
|
|
472
477
|
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='auto identifier id'>auto</span> <span class='assign token'>=</span> <span class='true true kw'>true</span>
|
|
473
478
|
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='lblAlgn identifier id'>lblAlgn</span> <span class='assign token'>=</span> <span class='symbol val'>:ctr</span>
|
|
474
479
|
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='lblOffset identifier id'>lblOffset</span> <span class='assign token'>=</span> <span class='string val'>"100%"</span>
|
|
475
|
-
<span class='
|
|
476
|
-
<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>
|
|
477
|
-
<span class='end end kw'>end</span>
|
|
480
|
+
<span class='super super kw'>super</span><span class='lparen token'>(</span><span class='axId identifier id'>axId</span><span class='comma token'>,</span> <span class='crossAx identifier id'>crossAx</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span>
|
|
478
481
|
<span class='end end kw'>end</span>
|
|
479
482
|
</pre>
|
|
480
483
|
</td>
|
|
@@ -529,12 +532,12 @@ based on the data that is used for the axis labels, not a specific choice.
|
|
|
529
532
|
<pre class="lines">
|
|
530
533
|
|
|
531
534
|
|
|
532
|
-
6
|
|
533
535
|
7
|
|
534
|
-
8
|
|
536
|
+
8
|
|
537
|
+
9</pre>
|
|
535
538
|
</td>
|
|
536
539
|
<td>
|
|
537
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/cat_axis.rb', line
|
|
540
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/cat_axis.rb', line 7</span>
|
|
538
541
|
|
|
539
542
|
<span class='def def kw'>def</span> <span class='auto identifier id'>auto</span>
|
|
540
543
|
<span class='@auto ivar id'>@auto</span>
|
|
@@ -587,12 +590,12 @@ specifies how the perpendicular axis is crossed must be one of [:ctr, :l,
|
|
|
587
590
|
<pre class="lines">
|
|
588
591
|
|
|
589
592
|
|
|
590
|
-
11
|
|
591
593
|
12
|
|
592
|
-
13
|
|
594
|
+
13
|
|
595
|
+
14</pre>
|
|
593
596
|
</td>
|
|
594
597
|
<td>
|
|
595
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/cat_axis.rb', line
|
|
598
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/cat_axis.rb', line 12</span>
|
|
596
599
|
|
|
597
600
|
<span class='def def kw'>def</span> <span class='lblAlgn identifier id'>lblAlgn</span>
|
|
598
601
|
<span class='@lblAlgn ivar id'>@lblAlgn</span>
|
|
@@ -644,12 +647,12 @@ The offset of the labels must be between a string between 0 and 1000
|
|
|
644
647
|
<pre class="lines">
|
|
645
648
|
|
|
646
649
|
|
|
647
|
-
16
|
|
648
650
|
17
|
|
649
|
-
18
|
|
651
|
+
18
|
|
652
|
+
19</pre>
|
|
650
653
|
</td>
|
|
651
654
|
<td>
|
|
652
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/cat_axis.rb', line
|
|
655
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/cat_axis.rb', line 17</span>
|
|
653
656
|
|
|
654
657
|
<span class='def def kw'>def</span> <span class='lblOffset identifier id'>lblOffset</span>
|
|
655
658
|
<span class='@lblOffset ivar id'>@lblOffset</span>
|
|
@@ -726,17 +729,17 @@ The document builder instance this objects xml will be added to.
|
|
|
726
729
|
<pre class="lines">
|
|
727
730
|
|
|
728
731
|
|
|
732
|
+
45
|
|
733
|
+
46
|
|
729
734
|
47
|
|
730
735
|
48
|
|
731
736
|
49
|
|
732
737
|
50
|
|
733
738
|
51
|
|
734
|
-
52
|
|
735
|
-
53
|
|
736
|
-
54</pre>
|
|
739
|
+
52</pre>
|
|
737
740
|
</td>
|
|
738
741
|
<td>
|
|
739
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/cat_axis.rb', line
|
|
742
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/cat_axis.rb', line 45</span>
|
|
740
743
|
|
|
741
744
|
<span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span>
|
|
742
745
|
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:catAx'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
|
@@ -757,7 +760,7 @@ The document builder instance this objects xml will be added to.
|
|
|
757
760
|
</div>
|
|
758
761
|
|
|
759
762
|
<div id="footer">
|
|
760
|
-
Generated on
|
|
763
|
+
Generated on Wed Nov 23 12:30:30 2011 by
|
|
761
764
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
762
765
|
0.7.3 (ruby-1.8.7).
|
|
763
766
|
</div>
|
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>
|
|
7
|
+
Class: Axlsx::CatAxisData
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.7.3
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
|
18
|
+
relpath = '..';
|
|
19
|
+
if (relpath != '') relpath += '/';
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
|
23
|
+
|
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</head>
|
|
28
|
+
<body>
|
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<div id="header">
|
|
34
|
+
<div id="menu">
|
|
35
|
+
|
|
36
|
+
<a href="../_index.html">Index (C)</a> »
|
|
37
|
+
<span class='title'><span class='object_link'><a href="../Axlsx.html" title="Axlsx (module)">Axlsx</a></span></span>
|
|
38
|
+
»
|
|
39
|
+
<span class="title">CatAxisData</span>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<div id="search">
|
|
46
|
+
|
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
|
48
|
+
|
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
|
50
|
+
|
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<div class="clear"></div>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<iframe id="search_frame"></iframe>
|
|
58
|
+
|
|
59
|
+
<div id="content"><h1>Class: Axlsx::CatAxisData
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
</h1>
|
|
64
|
+
|
|
65
|
+
<dl class="box">
|
|
66
|
+
|
|
67
|
+
<dt class="r1">Inherits:</dt>
|
|
68
|
+
<dd class="r1">
|
|
69
|
+
<span class="inheritName"><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></span>
|
|
70
|
+
|
|
71
|
+
<ul class="fullTree">
|
|
72
|
+
<li>Object</li>
|
|
73
|
+
|
|
74
|
+
<li class="next"><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></li>
|
|
75
|
+
|
|
76
|
+
<li class="next">Axlsx::CatAxisData</li>
|
|
77
|
+
|
|
78
|
+
</ul>
|
|
79
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
80
|
+
|
|
81
|
+
</dd>
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
<dt class="r2 last">Defined in:</dt>
|
|
92
|
+
<dd class="r2 last">lib/axlsx/drawing/cat_axis_data.rb</dd>
|
|
93
|
+
|
|
94
|
+
</dl>
|
|
95
|
+
<div class="clear"></div>
|
|
96
|
+
|
|
97
|
+
<h2>Overview</h2><div class="docstring">
|
|
98
|
+
<div class="discussion">
|
|
99
|
+
<p>
|
|
100
|
+
The CatAxisData class serializes the category axis data for a chart
|
|
101
|
+
</p>
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
<div class="tags">
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
</div><div id="subclasses">
|
|
110
|
+
<h2>Direct Known Subclasses</h2>
|
|
111
|
+
<p class="children"><span class='object_link'><a href="ValAxisData.html" title="Axlsx::ValAxisData (class)">ValAxisData</a></span></p>
|
|
112
|
+
</div>
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
<h2>Instance Attribute Summary</h2>
|
|
125
|
+
|
|
126
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></h3>
|
|
127
|
+
<p class="inherited"><span class='object_link'><a href="SimpleTypedList.html#allowed_types-instance_method" title="Axlsx::SimpleTypedList#allowed_types (method)">allowed_types</a></span>, <span class='object_link'><a href="SimpleTypedList.html#locked_at-instance_method" title="Axlsx::SimpleTypedList#locked_at (method)">locked_at</a></span>, <span class='object_link'><a href="SimpleTypedList.html#serialize_as-instance_method" title="Axlsx::SimpleTypedList#serialize_as (method)">serialize_as</a></span></p>
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
<h2>
|
|
132
|
+
Instance Method Summary
|
|
133
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
134
|
+
</h2>
|
|
135
|
+
|
|
136
|
+
<ul class="summary">
|
|
137
|
+
|
|
138
|
+
<li class="public ">
|
|
139
|
+
<span class="summary_signature">
|
|
140
|
+
|
|
141
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (CatAxisData) <strong>initialize</strong>(data = []) </a>
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
</span>
|
|
146
|
+
|
|
147
|
+
<span class="note title constructor">constructor</span>
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
<span class="summary_desc"><div class='inline'><p>
|
|
157
|
+
Create a new CatAxisData object.
|
|
158
|
+
</p>
|
|
159
|
+
</div></span>
|
|
160
|
+
|
|
161
|
+
</li>
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
<li class="public ">
|
|
165
|
+
<span class="summary_signature">
|
|
166
|
+
|
|
167
|
+
<a href="#to_xml-instance_method" title="#to_xml (instance method)">- (String) <strong>to_xml</strong>(xml) </a>
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
</span>
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
<span class="summary_desc"><div class='inline'><p>
|
|
181
|
+
Serializes the category axis data.
|
|
182
|
+
</p>
|
|
183
|
+
</div></span>
|
|
184
|
+
|
|
185
|
+
</li>
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
</ul>
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></h3>
|
|
200
|
+
<p class="inherited"><span class='object_link'><a href="SimpleTypedList.html#%3C%3C-instance_method" title="Axlsx::SimpleTypedList#<< (method)">#<<</a></span>, <span class='object_link'><a href="SimpleTypedList.html#%3D%3D-instance_method" title="Axlsx::SimpleTypedList#== (method)">#==</a></span>, <span class='object_link'><a href="SimpleTypedList.html#%5B%5D%3D-instance_method" title="Axlsx::SimpleTypedList#[]= (method)">#[]=</a></span>, <span class='object_link'><a href="SimpleTypedList.html#delete-instance_method" title="Axlsx::SimpleTypedList#delete (method)">#delete</a></span>, <span class='object_link'><a href="SimpleTypedList.html#delete_at-instance_method" title="Axlsx::SimpleTypedList#delete_at (method)">#delete_at</a></span>, <span class='object_link'><a href="SimpleTypedList.html#lock-instance_method" title="Axlsx::SimpleTypedList#lock (method)">#lock</a></span>, <span class='object_link'><a href="SimpleTypedList.html#method_missing-instance_method" title="Axlsx::SimpleTypedList#method_missing (method)">#method_missing</a></span>, <span class='object_link'><a href="SimpleTypedList.html#protected%3F-instance_method" title="Axlsx::SimpleTypedList#protected? (method)">#protected?</a></span>, <span class='object_link'><a href="SimpleTypedList.html#push-instance_method" title="Axlsx::SimpleTypedList#push (method)">#push</a></span>, <span class='object_link'><a href="SimpleTypedList.html#unlock-instance_method" title="Axlsx::SimpleTypedList#unlock (method)">#unlock</a></span></p>
|
|
201
|
+
<div id="constructor_details" class="method_details_list">
|
|
202
|
+
<h2>Constructor Details</h2>
|
|
203
|
+
|
|
204
|
+
<div class="method_details first">
|
|
205
|
+
<p class="signature first" id="initialize-instance_method">
|
|
206
|
+
|
|
207
|
+
- (<tt><span class='object_link'><a href="" title="Axlsx::CatAxisData (class)">CatAxisData</a></span></tt>) <strong>initialize</strong>(data = [])
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
</p><div class="docstring">
|
|
212
|
+
<div class="discussion">
|
|
213
|
+
<p>
|
|
214
|
+
Create a new CatAxisData object
|
|
215
|
+
</p>
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|
|
220
|
+
<div class="tags">
|
|
221
|
+
<h3>Parameters:</h3>
|
|
222
|
+
<ul class="param">
|
|
223
|
+
|
|
224
|
+
<li>
|
|
225
|
+
|
|
226
|
+
<span class='name'>data</span>
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
<span class='type'>(<tt>Array</tt>, <tt><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></tt>)</span>
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
—
|
|
236
|
+
<div class='inline'><p>
|
|
237
|
+
the data for this category axis. This can be a simple array or a simple
|
|
238
|
+
typed list of cells.
|
|
239
|
+
</p>
|
|
240
|
+
</div>
|
|
241
|
+
|
|
242
|
+
</li>
|
|
243
|
+
|
|
244
|
+
</ul>
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
</div><table class="source_code">
|
|
248
|
+
<tr>
|
|
249
|
+
<td>
|
|
250
|
+
<pre class="lines">
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
7
|
|
254
|
+
8
|
|
255
|
+
9
|
|
256
|
+
10</pre>
|
|
257
|
+
</td>
|
|
258
|
+
<td>
|
|
259
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/cat_axis_data.rb', line 7</span>
|
|
260
|
+
|
|
261
|
+
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='data identifier id'>data</span><span class='assign token'>=</span><span class='lbrack token'>[</span><span class='rbrack token'>]</span><span class='rparen token'>)</span>
|
|
262
|
+
<span class='super super kw'>super</span> <span class='Object constant id'>Object</span>
|
|
263
|
+
<span class='@list ivar id'>@list</span><span class='dot token'>.</span><span class='concat identifier id'>concat</span> <span class='data identifier id'>data</span> <span class='if if_mod kw'>if</span> <span class='data identifier id'>data</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='Array constant id'>Array</span><span class='rparen token'>)</span>
|
|
264
|
+
<span class='end end kw'>end</span>
|
|
265
|
+
</pre>
|
|
266
|
+
</td>
|
|
267
|
+
</tr>
|
|
268
|
+
</table>
|
|
269
|
+
</div>
|
|
270
|
+
|
|
271
|
+
</div>
|
|
272
|
+
<div id="method_missing_details" class="method_details_list">
|
|
273
|
+
<h2>Dynamic Method Handling</h2>
|
|
274
|
+
<p class="notice super">
|
|
275
|
+
This class handles dynamic methods through the <tt>method_missing</tt> method
|
|
276
|
+
|
|
277
|
+
in the class <span class='object_link'><a href="SimpleTypedList.html#method_missing-instance_method" title="Axlsx::SimpleTypedList#method_missing (method)">Axlsx::SimpleTypedList</a></span>
|
|
278
|
+
|
|
279
|
+
</p>
|
|
280
|
+
|
|
281
|
+
</div>
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
<div id="instance_method_details" class="method_details_list">
|
|
285
|
+
<h2>Instance Method Details</h2>
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
<div class="method_details first">
|
|
289
|
+
<p class="signature first" id="to_xml-instance_method">
|
|
290
|
+
|
|
291
|
+
- (<tt>String</tt>) <strong>to_xml</strong>(xml)
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
</p><div class="docstring">
|
|
296
|
+
<div class="discussion">
|
|
297
|
+
<p>
|
|
298
|
+
Serializes the category axis data
|
|
299
|
+
</p>
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
</div>
|
|
303
|
+
</div>
|
|
304
|
+
<div class="tags">
|
|
305
|
+
<h3>Parameters:</h3>
|
|
306
|
+
<ul class="param">
|
|
307
|
+
|
|
308
|
+
<li>
|
|
309
|
+
|
|
310
|
+
<span class='name'>xml</span>
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
<span class='type'>(<tt>Nokogiri::XML::Builder</tt>)</span>
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
—
|
|
318
|
+
<div class='inline'><p>
|
|
319
|
+
The document builder instance this objects xml will be added to.
|
|
320
|
+
</p>
|
|
321
|
+
</div>
|
|
322
|
+
|
|
323
|
+
</li>
|
|
324
|
+
|
|
325
|
+
</ul>
|
|
326
|
+
|
|
327
|
+
<h3>Returns:</h3>
|
|
328
|
+
<ul class="return">
|
|
329
|
+
|
|
330
|
+
<li>
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
</li>
|
|
338
|
+
|
|
339
|
+
</ul>
|
|
340
|
+
|
|
341
|
+
</div><table class="source_code">
|
|
342
|
+
<tr>
|
|
343
|
+
<td>
|
|
344
|
+
<pre class="lines">
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
15
|
|
348
|
+
16
|
|
349
|
+
17
|
|
350
|
+
18
|
|
351
|
+
19
|
|
352
|
+
20
|
|
353
|
+
21
|
|
354
|
+
22
|
|
355
|
+
23
|
|
356
|
+
24
|
|
357
|
+
25
|
|
358
|
+
26
|
|
359
|
+
27
|
|
360
|
+
28
|
|
361
|
+
29
|
|
362
|
+
30</pre>
|
|
363
|
+
</td>
|
|
364
|
+
<td>
|
|
365
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/cat_axis_data.rb', line 15</span>
|
|
366
|
+
|
|
367
|
+
<span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span>
|
|
368
|
+
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:cat'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
|
369
|
+
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:strRef'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
|
370
|
+
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:f'</span><span class='comma token'>,</span> <span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='cell_range identifier id'>cell_range</span><span class='lparen token'>(</span><span class='@list ivar id'>@list</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
|
|
371
|
+
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:strCache'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
|
372
|
+
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:ptCount'</span><span class='comma token'>,</span> <span class='symbol val'>:val=</span><span class='gt op'>></span><span class='size identifier id'>size</span><span class='rparen token'>)</span>
|
|
373
|
+
<span class='each_with_index identifier id'>each_with_index</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='item identifier id'>item</span><span class='comma token'>,</span> <span class='index identifier id'>index</span><span class='bitor op'>|</span>
|
|
374
|
+
<span class='v identifier id'>v</span> <span class='assign token'>=</span> <span class='item identifier id'>item</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='Cell constant id'>Cell</span><span class='rparen token'>)</span> <span class='question op'>?</span> <span class='item identifier id'>item</span><span class='dot token'>.</span><span class='value identifier id'>value</span> <span class='colon op'>:</span> <span class='item identifier id'>item</span>
|
|
375
|
+
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:pt'</span><span class='comma token'>,</span> <span class='symbol val'>:idx=</span><span class='gt op'>></span><span class='index identifier id'>index</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
|
376
|
+
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'c:v'</span><span class='comma token'>,</span> <span class='v identifier id'>v</span><span class='rparen token'>)</span>
|
|
377
|
+
<span class='rbrace token'>}</span>
|
|
378
|
+
<span class='end end kw'>end</span>
|
|
379
|
+
<span class='rbrace token'>}</span>
|
|
380
|
+
<span class='rbrace token'>}</span>
|
|
381
|
+
<span class='rbrace token'>}</span>
|
|
382
|
+
<span class='end end kw'>end</span>
|
|
383
|
+
</pre>
|
|
384
|
+
</td>
|
|
385
|
+
</tr>
|
|
386
|
+
</table>
|
|
387
|
+
</div>
|
|
388
|
+
|
|
389
|
+
</div>
|
|
390
|
+
|
|
391
|
+
</div>
|
|
392
|
+
|
|
393
|
+
<div id="footer">
|
|
394
|
+
Generated on Wed Nov 23 12:30:21 2011 by
|
|
395
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
396
|
+
0.7.3 (ruby-1.8.7).
|
|
397
|
+
</div>
|
|
398
|
+
|
|
399
|
+
</body>
|
|
400
|
+
</html>
|