Method: Axlsx::PieSeries#initialize
- Defined in:
- lib/axlsx/drawing/pie_series.rb
#initialize(chart, options = {}) ⇒ PieSeries
Creates a new series
31 32 33 34 35 36 37 |
# File 'lib/axlsx/drawing/pie_series.rb', line 31 def initialize(chart, ={}) @explosion = nil @colors = [] super(chart, ) self.labels = AxDataSource.new(:data => [:labels]) unless [:labels].nil? self.data = NumDataSource.new() unless [:data].nil? end |