From 9c733720e045ed4bb711053277e0ea817e83332b Mon Sep 17 00:00:00 2001 From: Oleg Yakovenko Date: Tue, 2 Mar 2021 16:45:44 +0200 Subject: feature: respect marker preferences without color specification --- lib/axlsx/drawing/scatter_series.rb | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/lib/axlsx/drawing/scatter_series.rb b/lib/axlsx/drawing/scatter_series.rb index b62fc006..f60f44fd 100644 --- a/lib/axlsx/drawing/scatter_series.rb +++ b/lib/axlsx/drawing/scatter_series.rb @@ -97,15 +97,12 @@ module Axlsx str << '' str << ('') str << '' - - if !@show_marker - str << '' - elsif @marker_symbol != :default - str << '' - end - + str << marker_xml str << '' + else + str << "#{marker_xml}" end + if ln_width str << '' str << '' @@ -117,5 +114,15 @@ module Axlsx end str end + + private + + def marker_xml + if !@show_marker + '' + elsif @marker_symbol != :default + '' + end + end end end -- cgit v1.2.3