diff options
| author | Noel Peden <[email protected]> | 2022-02-07 08:15:47 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-02-07 08:15:47 -0800 |
| commit | be9b3e6ee9dca0e0377ae8f3b14d007ad494b7e6 (patch) | |
| tree | 00cca6551838ca48dc297dd71338c14d8f8467b0 /test | |
| parent | 196862524f94c58b1521ef84a6cf0397b411a685 (diff) | |
| parent | f957baf68aae6ec06e94b5b7b4b1d281ab295ab3 (diff) | |
| download | caxlsx-be9b3e6ee9dca0e0377ae8f3b14d007ad494b7e6.tar.gz caxlsx-be9b3e6ee9dca0e0377ae8f3b14d007ad494b7e6.zip | |
Merge pull request #85 from olegykz/feature/manageable-scatter-markers
feature: manageable markers for scatter series
Diffstat (limited to 'test')
| -rw-r--r-- | test/drawing/tc_scatter_series.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/drawing/tc_scatter_series.rb b/test/drawing/tc_scatter_series.rb index ea3611ab..3d1d294d 100644 --- a/test/drawing/tc_scatter_series.rb +++ b/test/drawing/tc_scatter_series.rb @@ -53,4 +53,22 @@ class TestScatterSeries < Test::Unit::TestCase assert_equal(doc.xpath("//a:ln[@w='#{@series.ln_width}']").length, 1) 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] + assert(@series.show_marker, 'markers are enabled for marker-related styles') + end + + def test_true_show_marker + @chart = @ws.add_chart Axlsx::ScatterChart, :title => 'Line chart', :scatter_style => :line + @series = @chart.add_series :xData=>[1,2,4], :yData=>[1,3,9] + assert([email protected]_marker, 'markers are disabled for markerless scatter styles') + end + + def test_marker_symbol + @chart = @ws.add_chart Axlsx::ScatterChart, :title => 'Line chart', :scatter_style => :line + @series = @chart.add_series :xData=>[1,2,4], :yData=>[1,3,9], :marker_symbol => :diamond + assert_equal(@series.marker_symbol, :diamond, 'series could have own custom marker symbol') + end + end |
