summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/drawing/chart.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2013-01-23 08:22:16 +0900
committerRandy Morgan <[email protected]>2013-01-23 08:22:39 +0900
commit0e953a4f162bcd8a9d54a39504cea9c074551012 (patch)
tree2e416f627a4127578cc1f2b7aa59e5ca440fa8a6 /lib/axlsx/drawing/chart.rb
parent92448544db44106853b3f20a998a36f34a062c4d (diff)
downloadcaxlsx-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/chart.rb')
-rw-r--r--lib/axlsx/drawing/chart.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/axlsx/drawing/chart.rb b/lib/axlsx/drawing/chart.rb
index 081be949..79019a0a 100644
--- a/lib/axlsx/drawing/chart.rb
+++ b/lib/axlsx/drawing/chart.rb
@@ -49,6 +49,13 @@ module Axlsx
@d_lbls ||= DLbls.new(self.class)
end
+ # Indicates that colors should be varied by datum
+ # @return [Boolean]
+ attr_reader :vary_colors
+
+ # Configures the vary_colors options for this chart
+ # @param [Boolean] v The value to set
+ def vary_colors=(v) Axlsx::validate_boolean(v); @vary_colors = v; end
# The title object for the chart.
# @return [Title]
@@ -133,7 +140,6 @@ module Axlsx
str << '<c:style val="' << style.to_s << '"/>'
str << '<c:chart>'
@title.to_xml_string str
- # do these need the c: namespace as well???
str << '<c:autoTitleDeleted val="' << (@title == nil).to_s << '"/>'
@view_3D.to_xml_string(str) if @view_3D
str << '<c:floor><c:thickness val="0"/></c:floor>'