Sha256: fefef61827925b976b7f3a8a8cdc9ba095915bda99c8768f857b46005027f8ea

Contents?: true

Size: 723 Bytes

Versions: 31

Compression:

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

31 entries across 31 versions & 6 rubygems

Version Path
caxlsx-3.3.0 lib/axlsx/drawing/ax_data_source.rb
caxlsx-3.1.1 lib/axlsx/drawing/ax_data_source.rb
caxlsx-3.1.0 lib/axlsx/drawing/ax_data_source.rb
bonio-axlsx-2.2.3 lib/axlsx/drawing/ax_data_source.rb
caxlsx-3.0.4 lib/axlsx/drawing/ax_data_source.rb
caxlsx-3.0.3 lib/axlsx/drawing/ax_data_source.rb
caxlsx-3.0.2 lib/axlsx/drawing/ax_data_source.rb
caxlsx-2.0.2 lib/axlsx/drawing/ax_data_source.rb
caxlsx-3.0.1 lib/axlsx/drawing/ax_data_source.rb
caxlsx-3.0.0 lib/axlsx/drawing/ax_data_source.rb
axlsx-alt-3.0.1 lib/axlsx/drawing/ax_data_source.rb
axlsx-alt-3.0.0 lib/axlsx/drawing/ax_data_source.rb
axlsx-3.0.0.pre lib/axlsx/drawing/ax_data_source.rb
bonio-axlsx-2.2.2 lib/axlsx/drawing/ax_data_source.rb
bonio-axlsx-2.2.1 lib/axlsx/drawing/ax_data_source.rb
dg-axlsx-2.1.0 lib/axlsx/drawing/ax_data_source.rb
axlsx-2.1.0.pre lib/axlsx/drawing/ax_data_source.rb
l_axlsx-2.0.1 lib/axlsx/drawing/ax_data_source.rb
axlsx-2.0.1 lib/axlsx/drawing/ax_data_source.rb
axlsx-2.0.0 lib/axlsx/drawing/ax_data_source.rb