3 require File.dirname(__FILE__) + "/gruff_test_case"
5 class TestGruffStackedBar < GruffTestCase
9 [:Jimmy, [25, 36, 86, 39]],
10 [:Charles, [80, 54, 67, 54]],
11 [:Julie, [22, 29, 35, 38]],
22 g = Gruff::StackedBar.new
23 g.title = "Visual Stacked Bar Graph Test"
30 @datasets.each do |data|
31 g.data(data[0], data[1])
33 g.write "test/output/stacked_bar_keynote.png"
37 def test_bar_graph_small
38 g = Gruff::StackedBar.new(400)
39 g.title = "Visual Stacked Bar Graph Test"
46 @datasets.each do |data|
47 g.data(data[0], data[1])
49 g.write "test/output/stacked_bar_keynote_small.png"