class Rust::Plots::BarPlot
Public Class Methods
new(bars)
click to toggle source
Calls superclass method
Rust::Plots::BasePlot::new
# File lib/rust-plots.rb, line 223 def initialize(bars) super() @bars = bars end
Protected Instance Methods
_show()
click to toggle source
# File lib/rust-plots.rb, line 229 def _show() Rust["plotter.bars"] = @bars.values Rust["plotter.labels"] = @bars.keys Rust._eval("names(plotter.bars) <- plotter.labels") function = Rust::Function.new("barplot") function.options = self._augmented_options function.arguments << Rust::Variable.new("plotter.bars") function.call return self end