require 'daru' Daru.plotting_library = :gruff dv = Daru::Vector.new [1, 2, 3] dv.plot do |p| p.title = 'lol' end dv.plot type: :pie dv.plot type: :line dv.plot type: :scatter dv = Daru::Vector.new [:a, :a, :a, :b, :b, :b, :c, :c], type: :category dv.plot dv.plot type: :bar, method: :fraction dv.plot type: :pie do |p| p.title = 'category plot' end