Sha256: d4e9c0771dde90d4d212f34bfa7edbd85f61b4f3deeeb1f0bb1443f3ff4f3057

Contents?: true

Size: 693 Bytes

Versions: 6

Compression:

Stored size: 693 Bytes

Contents

require 'rubygems'
require 'gruff'
require File.join(File.dirname(__FILE__), 'new_image.rb')


@datasets = [
              [:Jimmy, [25, 36, 86, 39]],
              [:Charles, [80, 54, 67, 54]],
              [:Julie, [22, 29, 35, 38]],
              #[:Jane, [95, 95, 95, 90, 85, 80, 88, 100]],
              #[:Philip, [90, 34, 23, 12, 78, 89, 98, 88]],
              #["Arthur", [5, 10, 13, 11, 6, 16, 22, 32]],
            ]  
                  
g = Gruff::SideStackedBar.new
g.title = "Visual Stacked Bar Graph Test"
g.labels = {
  0 => '5/6', 
  1 => '5/15', 
  2 => '5/24', 
  3 => '5/30', 
}
@datasets.each do |data|
  g.data(data[0], data[1])
end
g.write 'gruff_sidestacked_bar_1.jpg'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rmagick4j-0.4.0-java test/eyetests/tests/gruff_sidestacked_bar_1.rb
rmagick4j-0.3.9-java test/eyetests/tests/gruff_sidestacked_bar_1.rb
rmagick4j-0.3.8 test/eyetests/tests/gruff_sidestacked_bar_1.rb
rmagick4j-0.3.5 test/eyetests/tests/gruff_sidestacked_bar_1.rb
rmagick4j-0.3.7 test/eyetests/tests/gruff_sidestacked_bar_1.rb
rmagick4j-0.3.6 test/eyetests/tests/gruff_sidestacked_bar_1.rb