lib/axlsx/drawing/area_series.rb in caxlsx-3.3.0 vs lib/axlsx/drawing/area_series.rb in caxlsx-3.4.0
- old
+ new
@@ -1,13 +1,11 @@
-# encoding: UTF-8
module Axlsx
# A AreaSeries defines the title, data and labels for line charts
# @note The recommended way to manage series is to use Chart#add_series
# @see Worksheet#add_chart
# @see Chart#add_series
class AreaSeries < Series
-
# The data for this series.
# @return [ValAxisData]
attr_reader :data
# The labels for this series.
@@ -33,11 +31,11 @@
# Creates a new series
# @option options [Array, SimpleTypedList] data
# @option options [Array, SimpleTypedList] labels
# @param [Chart] chart
- def initialize(chart, options={})
+ def initialize(chart, options = {})
@show_marker = false
@marker_symbol = options[:marker_symbol] ? options[:marker_symbol] : :default
@smooth = false
@labels, @data = nil, nil
super(chart, options)
@@ -103,8 +101,7 @@
# assigns the data for this series
def data=(v) DataTypeValidator.validate "Series.data", [NumDataSource], v; @data = v; end
# assigns the labels for this series
def labels=(v) DataTypeValidator.validate "Series.labels", [AxDataSource], v; @labels = v; end
-
end
end