Class: Axlsx::AxDataSource
- Inherits:
-
NumDataSource
- Object
- NumDataSource
- Axlsx::AxDataSource
- Defined in:
- lib/axlsx/drawing/ax_data_source.rb
Overview
Note:
only string data types are supported - mainly because we have not implemented a chart type that requires a numerical axis value
An axis data source that can contain referenced or literal strings or numbers
Instance Attribute Summary
Attributes inherited from NumDataSource
Class Method Summary collapse
-
.allowed_tag_names ⇒ Array
allowed element tag names for serialization.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ AxDataSource
constructor
creates a new NumDataSource object.
Methods inherited from NumDataSource
Methods included from OptionsParser
Constructor Details
#initialize(options = {}) ⇒ AxDataSource
creates a new NumDataSource object
10 11 12 13 14 15 |
# File 'lib/axlsx/drawing/ax_data_source.rb', line 10 def initialize(={}) @tag_name = :cat @data_type = StrData @ref_tag_name = :strRef super() end |
Class Method Details
.allowed_tag_names ⇒ Array
allowed element tag names for serialization
19 20 21 |
# File 'lib/axlsx/drawing/ax_data_source.rb', line 19 def self.allowed_tag_names [:xVal, :cat] end |