Sha256: 57275992b54ac220b629cee3ca7c83ae2694441a0fcf9e6e0170eb0fb3fc23b8

Contents?: true

Size: 428 Bytes

Versions: 4

Compression:

Stored size: 428 Bytes

Contents

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

g = Gruff::Dot.new
g.title = "Dot Graph With Manual Colors"
g.labels = {
						0 => '5/6',
						1 => '5/15',
						2 => '5/24',
						3 => '5/30',
					 }
g.data(:Art, [0, 5, 8, 15], '#990000')
g.data(:Philosophy, [10, 3, 2, 8], '#009900')
g.data(:Science, [2, 15, 8, 11], '#990099')

g.minimum_value = 0

g.write("gruff_dot_1.jpg")

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rmagick4j-0.4.0-java test/eyetests/tests/gruff_dot_1.rb
rmagick4j-0.3.9-java test/eyetests/tests/gruff_dot_1.rb
rmagick4j-0.3.8 test/eyetests/tests/gruff_dot_1.rb
rmagick4j-0.3.7 test/eyetests/tests/gruff_dot_1.rb