Method: Axlsx::BarSeries#initialize
- Defined in:
- lib/axlsx/drawing/bar_series.rb
#initialize(chart, options = {}) ⇒ BarSeries
Creates a new series
37 38 39 40 41 42 43 |
# File 'lib/axlsx/drawing/bar_series.rb', line 37 def initialize(chart, = {}) @shape = :box @colors = [] super self.labels = AxDataSource.new({ data: [:labels] }) unless [:labels].nil? self.data = NumDataSource.new() unless [:data].nil? end |