Sha256: df06a1fcdac7d1e6cebbfdcc4d578e0b14c1c2c92b0559ab5c5c6dba845a64df

Contents?: true

Size: 751 Bytes

Versions: 5

Compression:

Stored size: 751 Bytes

Contents

# frozen_string_literal: true

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

5 entries across 5 versions & 2 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/caxlsx-4.1.0/lib/axlsx/drawing/ax_data_source.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/caxlsx-4.1.0/lib/axlsx/drawing/ax_data_source.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/caxlsx-4.1.0/lib/axlsx/drawing/ax_data_source.rb
caxlsx-4.1.0 lib/axlsx/drawing/ax_data_source.rb
caxlsx-4.0.0 lib/axlsx/drawing/ax_data_source.rb