Method: Axlsx::Series#initialize

Defined in:
lib/axlsx/drawing/series.rb

#initialize(chart, options = {}) ⇒ Series

Creates a new series

Parameters:

  • chart (Chart)
  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • order (Integer)
  • title (String)


23
24
25
26
27
28
# File 'lib/axlsx/drawing/series.rb', line 23

def initialize(chart, options={})
  @order = nil
  self.chart = chart
  @chart.series << self
  parse_options options
end