Sha256: 257c818cafe3f22a727c3d262b0eac5b5f2c71b6483b85ddc803be34d0a96591

Contents?: true

Size: 720 Bytes

Versions: 2

Compression:

Stored size: 720 Bytes

Contents

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
    # 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

    # allowed element tag names for serialization
    # @return [Array]
    def self.allowed_tag_names
      [:xVal, :cat]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
caxlsx-3.4.1 lib/axlsx/drawing/ax_data_source.rb
caxlsx-3.4.0 lib/axlsx/drawing/ax_data_source.rb