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/ax_data_source.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/ax_data_source.rb')
| -rw-r--r-- | lib/axlsx/drawing/ax_data_source.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/axlsx/drawing/ax_data_source.rb b/lib/axlsx/drawing/ax_data_source.rb new file mode 100644 index 00000000..5bbfd55b --- /dev/null +++ b/lib/axlsx/drawing/ax_data_source.rb @@ -0,0 +1,25 @@ +module Axlsx + # An axis data source that can contain referenced or literal strings or numbers + # @note only string data types are supported - mainly because we have not implemented a chart type that requires a numerical axis value + class AxDataSource < NumDataSource + + # allowed element tag names + # @return [Array] + def self.allowed_tag_names + [:xVal, :cat] + end + + # creates a new NumDataSource object + # @option options [Array] data An array of Cells or Numeric objects + # @option options [Symbol] tag_name see tag_name + def initialize(options={}) + @tag_name = :cat + @data_type = StrData + @ref_tag_name = :strRef + super(options) + end + + end + +end + |
