Method: Charty::Plotters::LinePlotter#initialize
- Defined in:
- lib/charty/plotters/line_plotter.rb
#initialize(data: nil, variables: {}, **options, &block) ⇒ LinePlotter
Returns a new instance of LinePlotter.
70 71 72 73 74 75 |
# File 'lib/charty/plotters/line_plotter.rb', line 70 def initialize(data: nil, variables: {}, **, &block) x, y, color, style, size = variables.values_at(:x, :y, :color, :style, :size) super(x, y, color, style, size, data: data, **, &block) @comp_data = nil end |