Sha256: 97851216533cd2b1d8b69c8d1a2b20ead3e6e2f9b2e7ad62a811710521a830e7

Contents?: true

Size: 615 Bytes

Versions: 21

Compression:

Stored size: 615 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 initialize_ivars
        super
        
        @hide_legend = true
        @hide_title = true
        @hide_line_numbers = true

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

      def draw
        expand_canvas_for_vertical_legend

        super

        draw_vertical_legend
        @d.draw(@base_image)
      end

    end
  
  end
end

Version data entries

21 entries across 21 versions & 7 rubygems

Version Path
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/gruff-0.7.0/lib/gruff/mini/bar.rb
gruff-0.7.0-java lib/gruff/mini/bar.rb
gruff-0.7.0 lib/gruff/mini/bar.rb
gruff-0.6.0-java lib/gruff/mini/bar.rb
gruff-0.6.0 lib/gruff/mini/bar.rb
umang-gruff-0.3.6 lib/gruff/mini/bar.rb
gruff-0.5.1-java lib/gruff/mini/bar.rb
gruff-0.5.1 lib/gruff/mini/bar.rb
gruff-0.5.0-java lib/gruff/mini/bar.rb
gruff-0.5.0 lib/gruff/mini/bar.rb
gruff-0.4.0 lib/gruff/mini/bar.rb
gruff-0.4.0-java lib/gruff/mini/bar.rb
gruff-0.3.7 lib/gruff/mini/bar.rb
fhs-gruff-0.3.6.2 lib/gruff/mini/bar.rb
pfsc_gruff-0.3.6 lib/gruff/mini/bar.rb
pfsc-gruff-0.3.6 lib/gruff/mini/bar.rb
teejayvanslyke-gruff-0.4.1 lib/gruff/mini/bar.rb
teejayvanslyke-gruff-0.4.0 lib/gruff/mini/bar.rb
teejayvanslyke-gruff-0.3.8 lib/gruff/mini/bar.rb
teejayvanslyke-gruff-0.3.6 lib/gruff/mini/bar.rb