# File test/test_bar.rb, line 170 def test_negative g = Gruff::Bar.new g.title = "Pos/Neg Bar Graph Test" g.labels = { 0 => '5/6', 1 => '5/15', 2 => '5/24', 3 => '5/30', } g.data(:apples, [-1, 0, 4, -4]) g.data(:peaches, [10, 8, 6, 3]) g.write("test/output/bar_pos_neg.png") end