From 6739c249e7bf3cf7d2132b2aa49b6faf6bebec29 Mon Sep 17 00:00:00 2001
From: Randy Morgan
-Adds a chart to this worksheets drawing. + +
+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 +
-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, ={}) chart = drawing.add_chart(chart_type, ) @@ -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 |