diff options
| author | Randy Morgan <[email protected]> | 2013-04-18 08:31:07 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2013-04-18 08:31:07 +0900 |
| commit | db18c28df9fe5c44404e5f9af70a3db14a4b1f9a (patch) | |
| tree | 995be6df5e8ac469aef92e41ea9ab8fbd23861b0 | |
| parent | 4a062ffd6aa5855c76a6f1537f1902f53262eaf0 (diff) | |
| download | caxlsx-db18c28df9fe5c44404e5f9af70a3db14a4b1f9a.tar.gz caxlsx-db18c28df9fe5c44404e5f9af70a3db14a4b1f9a.zip | |
Added line specification
Required by Libre and Open office, and correct by spec. When we get a
requirement to customize the line width/shape this should be extracted
out into a Line class.
| -rw-r--r-- | lib/axlsx/drawing/line_series.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/axlsx/drawing/line_series.rb b/lib/axlsx/drawing/line_series.rb index 467dcc2d..b011e0b6 100644 --- a/lib/axlsx/drawing/line_series.rb +++ b/lib/axlsx/drawing/line_series.rb @@ -51,13 +51,19 @@ module Axlsx # @return [String] def to_xml_string(str = '') super(str) do - str << '<c:marker><c:symbol val="none"/></c:marker>' unless @show_marker if color str << '<c:spPr><a:solidFill>' str << '<a:srgbClr val="' << color << '"/>' - str << '</a:solidFill></c:spPr>' + str << '</a:solidFill>' + str << '<a:ln w="28800">' + str << '<a:solidFill>' + str << '<a:srgbClr val="' << color << '"/>' + str << '</a:solidFill>' + str << '</a:ln>' + str << '<a:round/>' + str << '</c:spPr>' end - + str << '<c:marker><c:symbol val="none"/></c:marker>' unless @show_marker @labels.to_xml_string(str) unless @labels.nil? @data.to_xml_string(str) unless @data.nil? end |
