Method: Axlsx::ScatterChart#initialize
- Defined in:
- lib/axlsx/drawing/scatter_chart.rb
#initialize(frame, options = {}) ⇒ ScatterChart
Creates a new scatter chart
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/axlsx/drawing/scatter_chart.rb', line 24 def initialize(frame, ={}) @scatterStyle = :lineMarker @xValAxId = rand(8 ** 8) @yValAxId = rand(8 ** 8) @xValAxis = ValAxis.new(@xValAxId, @yValAxId) @yValAxis = ValAxis.new(@yValAxId, @xValAxId) super(frame, ) @series_type = ScatterSeries .each do |o| self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" end end |