Method: Axlsx::ScatterSeries#to_xml_string
- Defined in:
- lib/axlsx/drawing/scatter_series.rb
#to_xml_string(str = '') ⇒ String
Serializes the object
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/axlsx/drawing/scatter_series.rb', line 40 def to_xml_string(str = '') super(str) do |inner_str| # needs to override the super color here to push in ln/and something else! if color str << '<c:spPr><a:solidFill>' str << '<a:srgbClr val="' << color << '"/>' str << '</a:solidFill>' str << '<a:ln><a:solidFill>' str << '<a:srgbClr val="' << color << '"/></a:solidFill></a:ln>' str << '</c:spPr>' str << '<c:marker>' str << '<c:spPr><a:solidFill>' str << '<a:srgbClr val="' << color << '"/>' str << '</a:solidFill>' str << '<a:ln><a:solidFill>' str << '<a:srgbClr val="' << color << '"/></a:solidFill></a:ln>' str << '</c:spPr>' str << '</c:marker>' end @xData.to_xml_string(inner_str) unless @xData.nil? @yData.to_xml_string(inner_str) unless @yData.nil? end str end |