Sha256: 3cc129a5ff8c7f6cc62c6b2df791e8001ba606d7af4164f4a614a6ef2e3dc81c

Contents?: true

Size: 845 Bytes

Versions: 12

Compression:

Stored size: 845 Bytes

Contents

require File.expand_path('../gruff_test_case', __FILE__)

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

12 entries across 12 versions & 2 rubygems

Version Path
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/gruff-0.7.0/test/test_mini_bar.rb
gruff-0.7.0-java test/test_mini_bar.rb
gruff-0.7.0 test/test_mini_bar.rb
gruff-0.6.0-java test/test_mini_bar.rb
gruff-0.6.0 test/test_mini_bar.rb
gruff-0.5.1-java test/test_mini_bar.rb
gruff-0.5.1 test/test_mini_bar.rb
gruff-0.5.0-java test/test_mini_bar.rb
gruff-0.5.0 test/test_mini_bar.rb
gruff-0.4.0 test/test_mini_bar.rb
gruff-0.4.0-java test/test_mini_bar.rb
gruff-0.3.7 test/test_mini_bar.rb