From 6739c249e7bf3cf7d2132b2aa49b6faf6bebec29 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Wed, 23 Nov 2011 12:28:10 +0900 Subject: -refactoring chart position and axis data/category for chart. -additional specs and documentation improvements. --- doc/Axlsx/Worksheet.html | 123 ++++++++++++++++++++++++++++++++--------------- 1 file changed, 84 insertions(+), 39 deletions(-) (limited to 'doc/Axlsx/Worksheet.html') diff --git a/doc/Axlsx/Worksheet.html b/doc/Axlsx/Worksheet.html index f3131f16..93e90793 100644 --- a/doc/Axlsx/Worksheet.html +++ b/doc/Axlsx/Worksheet.html @@ -1287,8 +1287,20 @@ The workbook that owns this worksheet

-

-Adds a chart to this worksheets drawing. + +

+ Note: +

+each chart type also specifies additional options +

+
+
+ +

+Adds a chart to this worksheets drawing. This is the recommended way to +create charts for your worksheet. This method wraps the complexity of +dealing with ooxml drawing, anchors, markers graphic frames chart objects +and all the other dirty details.

@@ -1365,6 +1377,24 @@ a customizable set of options +
  • + show_legend + (Boolean) + + + + +
  • + +
  • + style + (Integer) + + + + +
  • + @@ -1382,20 +1412,35 @@ a customizable set of options +

    See Also:

    + +
     
     
    -108
    -109
    -110
    -111
    -112
    +116 +117 +118 +119 +120
    -
    # File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 108
    +      
    # File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 116
     
     def add_chart(chart_type, options={})
       chart = drawing.add_chart(chart_type, options)
    @@ -1615,19 +1660,19 @@ hash of auto_fit_data
           
     
     
    -182
    -183
    -184
    -185
    -186
    -187
    -188
    -189
     190
    -191
    +191 +192 +193 +194 +195 +196 +197 +198 +199
    -
    # File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 182
    +      
    # File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 190
     
     def auto_width(col)
       mdw = 6.0 # maximum digit with is always 6.0 in testable fonts so instead of beating RMagick every time, I am hardcoding it here.
    @@ -1683,14 +1728,6 @@ Serializes the worksheet document
           
     
     
    -116
    -117
    -118
    -119
    -120
    -121
    -122
    -123
     124
     125
     126
    @@ -1703,10 +1740,18 @@ Serializes the worksheet document
     133
     134
     135
    -136
    +136 +137 +138 +139 +140 +141 +142 +143 +144
    -
    # File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 116
    +      
    # File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 124
     
     def to_xml
       builder = Nokogiri::XML::Builder.new(:encoding => ENCODING) do |xml|
    @@ -1802,14 +1847,6 @@ of Cell objects
           
     
     
    -154
    -155
    -156
    -157
    -158
    -159
    -160
    -161
     162
     163
     164
    @@ -1820,10 +1857,18 @@ of Cell objects
     169
     170
     171
    -172
    +172 +173 +174 +175 +176 +177 +178 +179 +180
    -
    # File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 154
    +      
    # File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 162
     
     def update_auto_fit_data(cells)
       styles = self.workbook.styles
    @@ -1855,7 +1900,7 @@ of Cell objects
     
         
         
    -- 
    cgit v1.2.3