Sha256: 05e5a3ece771e00317f7f5a148119bf866b1bca514297f562e4904f70150840e

Contents?: true

Size: 840 Bytes

Versions: 13

Compression:

Stored size: 840 Bytes

Contents

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

class TestMiniBar < GruffTestCase
  
  def test_simple_bar
    setup_single_dataset
    g = setup_basic_graph(Gruff::Mini::Bar, 200)
    g.hide_mini_legend = true
    write_test_file g, 'mini_bar.png'
  end

  # def test_simple_bar_wide_dataset
  #   setup_wide_dataset
  #   g = setup_basic_graph(Gruff::Mini::Bar, 200)
  #   write_test_file g, 'mini_bar_wide_data.png'
  # end
  # 
  # def test_code_sample
  #   g = Gruff::Mini::Bar.new(200)
  #   g.data "Jim", [200, 500, 400]
  #   g.labels = { 0 => 'This Month', 1 => 'Average', 2 => 'Overall'}
  #   g.write "mini_bar_one_color.png"
  #   
  #   g = Gruff::Mini::Bar.new(200)
  #   g.data "Car", 200
  #   g.data "Food", 500
  #   g.data "Art", 1000
  #   g.data "Music", 16
  #   g.write "mini_bar_many_colors.png"
  # end

end

Version data entries

13 entries across 13 versions & 7 rubygems

Version Path
rmagick4j-0.4.0-java test/gruff_tests/test/test_mini_bar.rb
rmagick4j-0.3.9-java test/gruff_tests/test/test_mini_bar.rb
umang-gruff-0.3.6 test/test_mini_bar.rb
rmagick4j-0.3.8 test/gruff_tests/test/test_mini_bar.rb
fhs-gruff-0.3.6.2 test/test_mini_bar.rb
pfsc_gruff-0.3.6 test/test_mini_bar.rb
pfsc-gruff-0.3.6 test/test_mini_bar.rb
teejayvanslyke-gruff-0.4.1 test/test_mini_bar.rb
teejayvanslyke-gruff-0.4.0 test/test_mini_bar.rb
teejayvanslyke-gruff-0.3.8 test/test_mini_bar.rb
teejayvanslyke-gruff-0.3.6 test/test_mini_bar.rb
gruff-0.3.6 test/test_mini_bar.rb
rmagick4j-0.3.7 test/gruff_tests/test/test_mini_bar.rb