Sha256: f0125681bb78cb7592b804975a78ccac404a8c9e46768152e9de4bb7afaf882a

Contents?: true

Size: 781 Bytes

Versions: 43

Compression:

Stored size: 781 Bytes

Contents

#!/usr/bin/ruby

require File.dirname(__FILE__) + "/gruff_test_case"

class TestGruffPhotoBar < GruffTestCase

#   def setup
#     @datasets = [
#       [:Jimmy, [25, 36, 86, 39]],
#       [:Charles, [80, 54, 67, 54]],
# #      [:Charity, [0, nil, 100, 90]],
#       ]
#   end
# 
#   def test_bar_graph
#     bar_graph_sized
#     bar_graph_sized(400)
#   end
# 
# 
# protected
# 
#   def bar_graph_sized(size=800)
#     g = Gruff::PhotoBar.new(size)
#     g.title = "Photo Bar Graph Test #{size}px"
#     g.labels = {
#       0 => '5/6', 
#       1 => '5/15', 
#       2 => '5/24', 
#       3 => '5/30', 
#     }
#     @datasets.each do |data|
#       g.data(*data)
#     end
# 
#     g.theme = 'plastik'
# 
#     g.write("test/output/photo_plastik_#{size}.png")    
#   end

end

Version data entries

43 entries across 43 versions & 12 rubygems

Version Path
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/gruff-0.7.0/test/test_photo.rb
gruff-0.7.0-java test/test_photo.rb
gruff-0.7.0 test/test_photo.rb
rmagick4j-0.4.0-java test/gruff_tests/test/test_photo.rb
gruff-0.6.0-java test/test_photo.rb
gruff-0.6.0 test/test_photo.rb
rmagick4j-0.3.9-java test/gruff_tests/test/test_photo.rb
jslade-gruff-0.3.5 test/test_photo.rb
schapht-gruff-0.3.5 test/test_photo.rb
topfunky-gruff-0.3.2 test/test_photo.rb
topfunky-gruff-0.3.3 test/test_photo.rb
topfunky-gruff-0.3.5 test/test_photo.rb
umang-gruff-0.3.6 test/test_photo.rb
woodhull-gruff-0.3.5 test/test_photo.rb
rmagick4j-0.3.8 test/gruff_tests/test/test_photo.rb
gruff-0.5.1-java test/test_photo.rb
gruff-0.5.1 test/test_photo.rb
gruff-0.5.0-java test/test_photo.rb
gruff-0.5.0 test/test_photo.rb
gruff-0.4.0 test/test_photo.rb