summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/drawing/scatter_chart.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-10-14 12:02:40 +0900
committerRandy Morgan <[email protected]>2012-10-14 12:02:40 +0900
commit5b5410845447772f4ba01b2ee5d03907f5897e7a (patch)
treece66d2add8423cf23b1c1a0bc35162c7447075ee /lib/axlsx/drawing/scatter_chart.rb
parenta441bc1ff24c5b238203adb49b6e7ce208d5dabf (diff)
downloadcaxlsx-5b5410845447772f4ba01b2ee5d03907f5897e7a.tar.gz
caxlsx-5b5410845447772f4ba01b2ee5d03907f5897e7a.zip
Refactored to use options parser and serialized attributes
Diffstat (limited to 'lib/axlsx/drawing/scatter_chart.rb')
-rw-r--r--lib/axlsx/drawing/scatter_chart.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/axlsx/drawing/scatter_chart.rb b/lib/axlsx/drawing/scatter_chart.rb
index 92ef9cf2..5e106a04 100644
--- a/lib/axlsx/drawing/scatter_chart.rb
+++ b/lib/axlsx/drawing/scatter_chart.rb
@@ -7,6 +7,8 @@ module Axlsx
# @see README for an example
class ScatterChart < Chart
+ include Axlsx::OptionsParser
+
# The Style for the scatter chart
# must be one of :none | :line | :lineMarker | :marker | :smooth | :smoothMarker
# return [Symbol]
@@ -30,9 +32,7 @@ module Axlsx
super(frame, options)
@series_type = ScatterSeries
@d_lbls = nil
- options.each do |o|
- self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}="
- end
+ parse_options options
end
# see #scatterStyle