Method: Axlsx::BarChart#initialize

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

#initialize(frame, options = {}) ⇒ BarChart

Creates a new bar chart object

Parameters:

  • frame (GraphicFrame)

    The workbook that owns this chart.

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

    a customizable set of options

Options Hash (options):

  • title (Cell, String)
  • show_legend (Boolean)
  • bar_dir (Symbol)
  • grouping (Symbol)
  • gap_width (String)
  • gap_depth (String)
  • shape (Symbol)

See Also:



72
73
74
75
76
77
78
# File 'lib/axlsx/drawing/bar_chart.rb', line 72

def initialize(frame, options={})
  @vary_colors = true
  @gap_width, @gap_depth, @shape = nil, nil, nil
  super(frame, options)
  @series_type = BarSeries
  @d_lbls = nil
end