diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-10-20 11:36:49 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-20 11:36:49 +0200 |
| commit | f476d99cc69f71150a7074ec2d3a0d54ca71a332 (patch) | |
| tree | 573aea0dd42e21054b730de73cfb5c7e40f89c6e /test | |
| parent | f6cb47c8baa99487610471d74da6a87b1232f336 (diff) | |
| parent | ae322aad90cefa78b26fd6f10b8f743b3190d141 (diff) | |
| download | caxlsx-f476d99cc69f71150a7074ec2d3a0d54ca71a332.tar.gz caxlsx-f476d99cc69f71150a7074ec2d3a0d54ca71a332.zip | |
Merge pull request #309 from kiskoza/fix-scatter-series-with-non-default-marker
Fix frozen string error for scatter series with non-default marker
Diffstat (limited to 'test')
| -rw-r--r-- | test/drawing/tc_scatter_series.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/drawing/tc_scatter_series.rb b/test/drawing/tc_scatter_series.rb index 26ed01ea..0bfb2413 100644 --- a/test/drawing/tc_scatter_series.rb +++ b/test/drawing/tc_scatter_series.rb @@ -60,6 +60,15 @@ class TestScatterSeries < Test::Unit::TestCase assert_equal(1, doc.xpath("//a:ln[@w='#{@series.ln_width}']").length) end + def test_to_xml_string_non_default_marker + @chart = @ws.add_chart Axlsx::ScatterChart, title: 'Line chart', scatter_style: :smoothMarker + @series = @chart.add_series xData: [1, 2, 4], yData: [1, 3, 9] + @series.marker_symbol = :circle + doc = Nokogiri::XML(@chart.to_xml_string) + + assert_equal(1, doc.xpath("//c:symbol[@val='#{@series.marker_symbol}']").length) + end + def test_false_show_marker @chart = @ws.add_chart Axlsx::ScatterChart, title: 'Smooth Chart', scatter_style: :smoothMarker @series = @chart.add_series xData: [1, 2, 4], yData: [1, 3, 9] |
