Method: Axlsx::AreaSeries#initialize
- Defined in:
- lib/axlsx/drawing/area_series.rb
#initialize(chart, options = {}) ⇒ AreaSeries
Creates a new series
38 39 40 41 42 43 44 45 46 |
# File 'lib/axlsx/drawing/area_series.rb', line 38 def initialize(chart, ={}) @show_marker = false @marker_symbol = [:marker_symbol] ? [:marker_symbol] : :default @smooth = false @labels, @data = nil, nil super(chart, ) @labels = AxDataSource.new(:data => [:labels]) unless [:labels].nil? @data = NumDataSource.new() unless [:data].nil? end |