Method: Axlsx::Drawing#add_chart
- Defined in:
- lib/axlsx/drawing/drawing.rb
#add_chart(chart_type, options = {}) ⇒ Object
Note:
The recommended way to manage charts is to use Worksheet.add_chart. Please refer to that method for documentation.
Adds a chart to the drawing.
97 98 99 100 |
# File 'lib/axlsx/drawing/drawing.rb', line 97 def add_chart(chart_type, ={}) TwoCellAnchor.new(self, ) @anchors.last.add_chart(chart_type, ) end |