diff options
| author | Randy Morgan <[email protected]> | 2013-01-23 08:22:16 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2013-01-23 08:22:39 +0900 |
| commit | 0e953a4f162bcd8a9d54a39504cea9c074551012 (patch) | |
| tree | 2e416f627a4127578cc1f2b7aa59e5ca440fa8a6 /lib/axlsx/drawing/pie_3D_chart.rb | |
| parent | 92448544db44106853b3f20a998a36f34a062c4d (diff) | |
| download | caxlsx-0e953a4f162bcd8a9d54a39504cea9c074551012.tar.gz caxlsx-0e953a4f162bcd8a9d54a39504cea9c074551012.zip | |
Updated chart vary_colors
This sets the proper default for each chart type and lets us change it
as we need.
Diffstat (limited to 'lib/axlsx/drawing/pie_3D_chart.rb')
| -rw-r--r-- | lib/axlsx/drawing/pie_3D_chart.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/axlsx/drawing/pie_3D_chart.rb b/lib/axlsx/drawing/pie_3D_chart.rb index da51d08b..4e61f4a1 100644 --- a/lib/axlsx/drawing/pie_3D_chart.rb +++ b/lib/axlsx/drawing/pie_3D_chart.rb @@ -23,6 +23,7 @@ module Axlsx # @see Chart # @see View3D def initialize(frame, options={}) + @vary_colors = true super(frame, options) @series_type = PieSeries @view_3D = View3D.new({:rot_x =>30, :perspective=>30}.merge(options)) @@ -36,7 +37,7 @@ module Axlsx super(str) do |str_inner| str_inner << '<c:pie3DChart>' - str_inner << '<c:varyColors val="1"/>' + str_inner << '<c:varyColors val="' << vary_colors.to_s << '"/>' @series.each { |ser| ser.to_xml_string(str_inner) } d_lbls.to_xml_string(str) if @d_lbls str_inner << '</c:pie3DChart>' |
