Sha256: b5146f5fde442b57770902220cd1873e0ff6be18e5a6d35facad159fe560bcdd

Contents?: true

Size: 526 Bytes

Versions: 12

Compression:

Stored size: 526 Bytes

Contents

##
#
# Makes a small bar graph suitable for display at 200px or even smaller.
#
module Gruff
  module Mini

    class Bar < Gruff::Bar

      include Gruff::Mini::Legend
      
      def draw
        @hide_legend = true
        @hide_title = true
        @hide_line_numbers = true

        @marker_font_size = 50.0
        @minimum_value = 0.0
        @legend_font_size = 60.0

        expand_canvas_for_vertical_legend

        super

        draw_vertical_legend
        @d.draw(@base_image)
      end

    end
  
  end
end

Version data entries

12 entries across 12 versions & 5 rubygems

Version Path
jslade-gruff-0.3.5 lib/gruff/mini/bar.rb
schapht-gruff-0.3.5 lib/gruff/mini/bar.rb
topfunky-gruff-0.3.2 lib/gruff/mini/bar.rb
topfunky-gruff-0.3.3 lib/gruff/mini/bar.rb
topfunky-gruff-0.3.5 lib/gruff/mini/bar.rb
woodhull-gruff-0.3.5 lib/gruff/mini/bar.rb
gruff-0.2.8 lib/gruff/mini/bar.rb
gruff-0.2.9 lib/gruff/mini/bar.rb
gruff-0.3.0 lib/gruff/mini/bar.rb
gruff-0.3.1 lib/gruff/mini/bar.rb
gruff-0.3.3 lib/gruff/mini/bar.rb
gruff-0.3.4 lib/gruff/mini/bar.rb