diff options
| author | Jean-Philippe Moal <[email protected]> | 2013-10-10 15:21:27 +0200 |
|---|---|---|
| committer | Jean-Philippe Moal <[email protected]> | 2013-10-10 15:21:27 +0200 |
| commit | 82dbc7b81c28c66d530c4f826544527bf692f08b (patch) | |
| tree | 0166f1e9019e116ac4999ff0695a96653191f472 | |
| parent | 3171fa568618e9d75ead1994ed6e3be90b693a47 (diff) | |
| download | caxlsx-82dbc7b81c28c66d530c4f826544527bf692f08b.tar.gz caxlsx-82dbc7b81c28c66d530c4f826544527bf692f08b.zip | |
Do not use a marker tag in bubble series tags
As per the spec, a bubble series tag should not include a marker tag.
This was preventing files from being open with Excel Viewer.
| -rw-r--r-- | lib/axlsx/drawing/bubble_series.rb | 8 | ||||
| -rw-r--r-- | test/drawing/tc_bubble_series.rb | 2 |
2 files changed, 1 insertions, 9 deletions
diff --git a/lib/axlsx/drawing/bubble_series.rb b/lib/axlsx/drawing/bubble_series.rb index 161a9a9e..6d263774 100644 --- a/lib/axlsx/drawing/bubble_series.rb +++ b/lib/axlsx/drawing/bubble_series.rb @@ -52,14 +52,6 @@ module Axlsx 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? diff --git a/test/drawing/tc_bubble_series.rb b/test/drawing/tc_bubble_series.rb index 4bad74b1..e601912f 100644 --- a/test/drawing/tc_bubble_series.rb +++ b/test/drawing/tc_bubble_series.rb @@ -15,7 +15,7 @@ class TestBubbleSeries < Test::Unit::TestCase def test_to_xml_string doc = Nokogiri::XML(@chart.to_xml_string) - assert_equal(doc.xpath("//a:srgbClr[@val='#{@series.color}']").size,4) + assert_equal(doc.xpath("//a:srgbClr[@val='#{@series.color}']").size,2) end end |
