class Axlsx::AxDataSource
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
Public Class Methods
allowed_tag_names()
click to toggle source
allowed element tag names for serialization @return [Array]
# File lib/axlsx/drawing/ax_data_source.rb, line 19 def self.allowed_tag_names [:xVal, :cat] end
new(options={})
click to toggle source
creates a new NumDataSource
object @option options [Array] data An array of Cells or Numeric objects @option options [Symbol] tag_name see tag_name
Calls superclass method
# File lib/axlsx/drawing/ax_data_source.rb, line 10 def initialize(options={}) @tag_name = :cat @data_type = StrData @ref_tag_name = :strRef super(options) end