Method: Axlsx::TwoCellAnchor#add_chart

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

#add_chart(chart_type, options) ⇒ Chart

Creates a graphic frame and chart object associated with this anchor

Returns:



65
66
67
68
# File 'lib/axlsx/drawing/two_cell_anchor.rb', line 65

def add_chart(chart_type, options)
  @object = GraphicFrame.new(self, chart_type, options)
  @object.chart
end