Sha256: 605348622123364341a72e0c5a911562df43eb5f66b008460a8d49018759672c

Contents?: true

Size: 642 Bytes

Versions: 5

Compression:

Stored size: 642 Bytes

Contents

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

    # Serializes the series title
    # @param [Nokogiri::XML::Builder] xml The document builder instance this objects xml will be added to.
    # @return [String]
    def to_xml(xml)
      xml.send('c:tx') {
        xml.send('c:strRef') {
          xml.send('c:f', Axlsx::cell_range([@cell]))
          xml.send('c:strCache') {
            xml.send('c:ptCount', :val=>1)
            xml.send('c:pt', :idx=>0) {
              xml.send('c:v', @text)
            }
          }
        }
      }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
axlsx-1.0.13 lib/axlsx/drawing/series_title.rb
axlsx-1.0.11 lib/axlsx/drawing/series_title.rb
axlsx-1.0.10 lib/axlsx/drawing/series_title.rb
axlsx-1.0.10a lib/axlsx/drawing/series_title.rb
axlsx-1.0.9 lib/axlsx/drawing/series_title.rb