diff options
| author | Randy Morgan <[email protected]> | 2012-05-03 09:10:23 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-05-03 09:10:23 +0900 |
| commit | e622dc54069074198990beb0462da630bad38dd0 (patch) | |
| tree | 4065eb11cf4dcd68440bf8347af4509c130fb11e /lib/axlsx/drawing/pie_series.rb | |
| parent | 2dfdd1f26b1fc748da3b4edad9aeeaeae842aedb (diff) | |
| download | caxlsx-e622dc54069074198990beb0462da630bad38dd0.tar.gz caxlsx-e622dc54069074198990beb0462da630bad38dd0.zip | |
rebuild series data base objects with full implementation.
Address shape validation error.
Diffstat (limited to 'lib/axlsx/drawing/pie_series.rb')
| -rw-r--r-- | lib/axlsx/drawing/pie_series.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/axlsx/drawing/pie_series.rb b/lib/axlsx/drawing/pie_series.rb index 13f3cd5d..28056c43 100644 --- a/lib/axlsx/drawing/pie_series.rb +++ b/lib/axlsx/drawing/pie_series.rb @@ -32,8 +32,8 @@ module Axlsx @explosion = nil @colors = [] super(chart, options) - self.labels = CatAxisData.new(options[:labels]) unless options[:labels].nil? - self.data = NamedAxisData.new(:val, options[:data]) unless options[:data].nil? + self.labels = AxDataSource.new(:data => options[:labels]) unless options[:labels].nil? + self.data = NumDataSource.new(options) unless options[:data].nil? end # @see colors @@ -64,10 +64,10 @@ module Axlsx private # assigns the data for this series - def data=(v) DataTypeValidator.validate "Series.data", [SimpleTypedList], v; @data = v; end + def data=(v) DataTypeValidator.validate "Series.data", [NumDataSource], v; @data = v; end # assigns the labels for this series - def labels=(v) DataTypeValidator.validate "Series.labels", [SimpleTypedList], v; @labels = v; end + def labels=(v) DataTypeValidator.validate "Series.labels", [AxDataSource], v; @labels = v; end end |
