Module: Charty::PlotMethods
- Included in:
- Charty
- Defined in:
- lib/charty/plot_methods.rb
Instance Method Summary collapse
-
#bar_plot(x = nil, y = nil, color = nil, **options, &block) ⇒ Object
Show the given data as rectangular bars.
- #box_plot(x = nil, y = nil, color = nil, **options, &block) ⇒ Object
Instance Method Details
#bar_plot(x = nil, y = nil, color = nil, **options, &block) ⇒ Object
Show the given data as rectangular bars.
9 10 11 |
# File 'lib/charty/plot_methods.rb', line 9 def (x=nil, y=nil, color=nil, **, &block) Plotters::BarPlotter.new(x, y, color, **, &block) end |
#box_plot(x = nil, y = nil, color = nil, **options, &block) ⇒ Object
13 14 15 |
# File 'lib/charty/plot_methods.rb', line 13 def box_plot(x=nil, y=nil, color=nil, **, &block) Plotters::BoxPlotter.new(x, y, color, **, &block) end |