Class: Axlsx::SeriesTitle
- Inherits:
-
Title
- Object
- Title
- Axlsx::SeriesTitle
- Defined in:
- lib/axlsx/drawing/series_title.rb
Overview
A series title is a Title with a slightly different serialization than chart titles.
Instance Attribute Summary
Attributes inherited from Title
Instance Method Summary (collapse)
-
- (String) to_xml(xml)
Serializes the series title.
Methods inherited from Title
Constructor Details
This class inherits a constructor from Axlsx::Title
Instance Method Details
- (String) to_xml(xml)
Serializes the series title
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/axlsx/drawing/series_title.rb', line 8 def to_xml(xml) xml.send('c:tx') { xml.send('c:strRef') { xml.send('c:f', range) xml.send('c:strCache') { xml.send('c:ptCount', :val=>1) xml.send('c:pt', :idx=>0) { xml.send('c:v', @text) } } } } end |