Sha256: 4cf4195f3b71a8d4f503e7148e4b270786df6f889aa390a71418cf027a085052

Contents?: true

Size: 749 Bytes

Versions: 1

Compression:

Stored size: 749 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

1 entries across 1 versions & 1 rubygems

Version Path
caxlsx-3.2.0 lib/axlsx/drawing/ax_data_source.rb