Sha256: 52a9ab51312c36227d13856efc4f4a9150a948c22a8de35dd2a9bd0579bf37ba
Contents?: true
Size: 562 Bytes
Versions: 4
Compression:
Stored size: 562 Bytes
Contents
#!/usr/bin/ruby require File.dirname(__FILE__) + "/gruff_test_case" class TestGruffSideStackedBar < GruffTestCase def setup @datasets = [ [:A, [ 25 ]], [:B, [ 25 ]], [:C, [ 25 ]], [:D, [ 25 ]] ] @labels = { 0 => 'Foobar' } end def test_graph_should_render_100_wide g = Gruff::SideStackedBar.new g.title = "Side Stacked Bar As Percentile" g.labels = @labels @datasets.each do |data| g.data(data[0], data[1]) end g.write "test/output/side_stacked_bar_percentile.png" end end
Version data entries
4 entries across 4 versions & 1 rubygems