Method: Axlsx::BarSeries#initialize
- Defined in:
- lib/axlsx/drawing/bar_series.rb
#initialize(chart, options = {}) ⇒ BarSeries
Creates a new series
28 29 30 31 32 33 |
# File 'lib/axlsx/drawing/bar_series.rb', line 28 def initialize(chart, ={}) @shape = :box super(chart, ) self.labels = CatAxisData.new([:labels]) unless [:labels].nil? self.data = ValAxisData.new([:data]) unless [:data].nil? end |