# File test/test_bar.rb, line 36 def test_bar_graph_set_colors g = Gruff::Bar.new g.title = "Bar Graph With Manual Colors" g.labels = { 0 => '5/6', 1 => '5/15', 2 => '5/24', 3 => '5/30', } g.data(:Art, [0, 5, 8, 15], '#990000') g.data(:Philosophy, [10, 3, 2, 8], '#009900') g.data(:Science, [2, 15, 8, 11], '#990099') g.minimum_value = 0 g.write("test/output/bar_manual_colors.png") end