Sha256: eaf85add7cfa1a61834e1d40f26d6d06d234f123e713b5f47535e2d5c8b6ec74

Contents?: true

Size: 516 Bytes

Versions: 6

Compression:

Stored size: 516 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]],
            ]

g = Gruff::StackedBar.new(400)
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.theme_rails_keynote

g.write 'gruff_stacked_bar_2.jpg'

Version data entries

6 entries across 6 versions & 1 rubygems

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