Sha256: 2714de31565d903795f48ef362b4f5a090e7781bc160dea8ab84bdbd0061194a

Contents?: true

Size: 601 Bytes

Versions: 34

Compression:

Stored size: 601 Bytes

Contents

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

    class Pie < Gruff::Pie

      include Gruff::Mini::Legend

      def initialize_ivars
        super
        
        @hide_legend = true
        @hide_title = true
        @hide_line_numbers = true
  
        @marker_font_size = 60.0
        @legend_font_size = 60.0
      end

      def draw
        expand_canvas_for_vertical_legend
        
        super
        
        draw_vertical_legend
        
        @d.draw(@base_image)
      end # def draw

    end # class Pie
  
  end
end

Version data entries

34 entries across 34 versions & 11 rubygems

Version Path
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/gruff-0.7.0/lib/gruff/mini/pie.rb
gruff-0.7.0-java lib/gruff/mini/pie.rb
gruff-0.7.0 lib/gruff/mini/pie.rb
gruff-0.6.0-java lib/gruff/mini/pie.rb
gruff-0.6.0 lib/gruff/mini/pie.rb
jslade-gruff-0.3.5 lib/gruff/mini/pie.rb
schapht-gruff-0.3.5 lib/gruff/mini/pie.rb
topfunky-gruff-0.3.2 lib/gruff/mini/pie.rb
topfunky-gruff-0.3.3 lib/gruff/mini/pie.rb
topfunky-gruff-0.3.5 lib/gruff/mini/pie.rb
umang-gruff-0.3.6 lib/gruff/mini/pie.rb
woodhull-gruff-0.3.5 lib/gruff/mini/pie.rb
gruff-0.5.1-java lib/gruff/mini/pie.rb
gruff-0.5.1 lib/gruff/mini/pie.rb
gruff-0.5.0-java lib/gruff/mini/pie.rb
gruff-0.5.0 lib/gruff/mini/pie.rb
gruff-0.4.0 lib/gruff/mini/pie.rb
gruff-0.4.0-java lib/gruff/mini/pie.rb
gruff-0.3.7 lib/gruff/mini/pie.rb
fhs-gruff-0.3.6.2 lib/gruff/mini/pie.rb