From 18bfcd27f6ded316c28b6029911c1bdd231319ed Mon Sep 17 00:00:00 2001 From: Erik Veijola Date: Tue, 28 Jul 2015 15:10:37 +0300 Subject: scatter_series.rb: added line_width to scatter series Signed-off-by: Erik Veijola --- lib/axlsx/drawing/scatter_series.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lib') diff --git a/lib/axlsx/drawing/scatter_series.rb b/lib/axlsx/drawing/scatter_series.rb index c0d6e8f1..6b71227c 100644 --- a/lib/axlsx/drawing/scatter_series.rb +++ b/lib/axlsx/drawing/scatter_series.rb @@ -21,6 +21,9 @@ module Axlsx # @return [String] attr_reader :color + # @return [String] + attr_reader :ln_width + # Line smoothing between data points # @return [Boolean] attr_reader :smooth @@ -36,6 +39,7 @@ module Axlsx Axlsx::validate_boolean(options[:smooth]) @smooth = options[:smooth] end + @ln_width = options[:ln_width] unless options[:ln_width].nil? super(chart, options) @xData = AxDataSource.new(:tag_name => :xVal, :data => options[:xData]) unless options[:xData].nil? @yData = NumDataSource.new({:tag_name => :yVal, :data => options[:yData]}) unless options[:yData].nil? @@ -52,6 +56,11 @@ module Axlsx @smooth = v end + # @see ln_width + def ln_width=(v) + @ln_width = v + end + # Serializes the object # @param [String] str # @return [String] @@ -74,6 +83,11 @@ module Axlsx str << '' str << '' end + if ln_width + str << '' + str << '' + str << '' + end @xData.to_xml_string(str) unless @xData.nil? @yData.to_xml_string(str) unless @yData.nil? str << ('') -- cgit v1.2.3