summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/axlsx/drawing/scatter_series.rb14
1 files changed, 14 insertions, 0 deletions
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 << '</c:spPr>'
str << '</c:marker>'
end
+ if ln_width
+ str << '<c:spPr>'
+ str << '<a:ln w="' << ln_width << '"/>'
+ str << '</c:spPr>'
+ end
@xData.to_xml_string(str) unless @xData.nil?
@yData.to_xml_string(str) unless @yData.nil?
str << ('<c:smooth val="' << ((smooth) ? '1' : '0') << '"/>')