Method: Axlsx::Pie3DChart#initialize

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

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

Creates a new pie 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)
  • grouping (Symbol)
  • gap_depth (String)
  • rot_x (Integer)
  • h_percent (String)
  • rot_y (Integer)
  • depth_percent (String)
  • r_ang_ax (Boolean)
  • perspective (Integer)

See Also:



25
26
27
28
29
30
31
# File 'lib/axlsx/drawing/pie_3D_chart.rb', line 25

def initialize(frame, options={})
  @vary_colors = true
  super(frame, options)
  @series_type = PieSeries
  @view_3D = View3D.new({:rot_x =>30, :perspective=>30}.merge(options))
  @d_lbls = nil
end