Sha256: 994d029ce66fa859b20ad100ebb12d35f60262f0a5b22a55a05db26b01c1fed7

Contents?: true

Size: 625 Bytes

Versions: 22

Compression:

Stored size: 625 Bytes

Contents

# encoding: UTF-8
module Axlsx
  # A series title is a Title with a slightly different serialization than chart titles.
  class SeriesTitle < Title

    # Serializes the object
    # @param [String] str
    # @return [String]
    def to_xml_string(str = '')
      str << '<c:tx>'
      str << '<c:strRef>'
      str << '<c:f>' << Axlsx::cell_range([@cell]) << '</c:f>'
      str << '<c:strCache>'
      str << '<c:ptCount val="1"/>'
      str << '<c:pt idx="0">'
      str << '<c:v>' << @text << '</c:v>'
      str << '</c:pt>'
      str << '</c:strCache>'
      str << '</c:strRef>'
      str << '</c:tx>'
    end
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
caxlsx-2.0.2 lib/axlsx/drawing/series_title.rb
axlsx-2.0.1 lib/axlsx/drawing/series_title.rb
axlsx-2.0.0 lib/axlsx/drawing/series_title.rb
axlsx-1.3.6 lib/axlsx/drawing/series_title.rb
axlsx-1.3.5 lib/axlsx/drawing/series_title.rb
axlsx-1.3.4 lib/axlsx/drawing/series_title.rb
axlsx-1.3.3 lib/axlsx/drawing/series_title.rb
axlsx-1.3.2 lib/axlsx/drawing/series_title.rb
axlsx-1.3.1 lib/axlsx/drawing/series_title.rb
axlsx-1.2.3 lib/axlsx/drawing/series_title.rb
axlsx-1.2.2 lib/axlsx/drawing/series_title.rb
axlsx-1.2.1 lib/axlsx/drawing/series_title.rb
axlsx-1.2.0 lib/axlsx/drawing/series_title.rb
axlsx-1.1.8 lib/axlsx/drawing/series_title.rb
axlsx-1.1.7 lib/axlsx/drawing/series_title.rb
axlsx-1.1.6 lib/axlsx/drawing/series_title.rb
axlsx-1.1.5 lib/axlsx/drawing/series_title.rb
axlsx-1.1.4 lib/axlsx/drawing/series_title.rb
axlsx-1.1.3 lib/axlsx/drawing/series_title.rb
axlsx-1.1.2 lib/axlsx/drawing/series_title.rb