Sha256: 411d3063792ad8e0660a3913b3c2fc82ed4590357e4b82b1509e4f50b3665a8b

Contents?: true

Size: 597 Bytes

Versions: 3

Compression:

Stored size: 597 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[:c].tx {
        xml[:c].strRef {
          xml[:c].f Axlsx::cell_range([@cell])
          xml[:c].strCache {
            xml[:c].ptCount :val=>1
            xml[:c].pt(:idx=>0) {
              xml[:c].v @text
            }
          }
        }
      }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
axlsx-1.0.16 lib/axlsx/drawing/series_title.rb
axlsx-1.0.15 lib/axlsx/drawing/series_title.rb
axlsx-1.0.14 lib/axlsx/drawing/series_title.rb