Method: Axlsx::Chart#initialize
- Defined in:
- lib/axlsx/drawing/chart.rb
#initialize(frame, options = {}) {|_self| ... } ⇒ Chart
Creates a new chart object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/axlsx/drawing/chart.rb', line 17 def initialize(frame, ={}) @style = 18 @view_3D = nil @graphic_frame=frame @graphic_frame.anchor.drawing.worksheet.workbook.charts << self @series = SimpleTypedList.new Series @show_legend = true @legend_position = :r @display_blanks_as = :gap @series_type = Series @title = Title.new @bg_color = nil start_at(*[:start_at]) if [:start_at] end_at(*[:end_at]) if [:end_at] yield self if block_given? end |