require 'daru/view' dv = Daru::Vector.new [:a, :a, :a, :b, :b, :c], type: :category bar_graph1 = Daru::View::Plot.new(dv, type: :bar) bar_graph1.init_script Daru::View.plotting_library = :nyaplot bar_graph1.div IRuby.html bar_graph1.div bar_graph1.show_in_iruby