Sha256: 32a9cad0de72e03ee43717cd75bc768a6381c9caa0ff3e71190492277fc4b1d8

Contents?: true

Size: 593 Bytes

Versions: 32

Compression:

Stored size: 593 Bytes

Contents

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

    class SideBar < Gruff::SideBar

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

        @marker_font_size = 50.0
        @legend_font_size = 50.0
      end
      
      def draw
        expand_canvas_for_vertical_legend
        
        super
        
        draw_vertical_legend
        
        @d.draw(@base_image)
      end
      
    end
  
  end
end

Version data entries

32 entries across 32 versions & 11 rubygems

Version Path
pfsc_gruff-0.3.6 lib/gruff/mini/side_bar.rb
pfsc-gruff-0.3.6 lib/gruff/mini/side_bar.rb
teejayvanslyke-gruff-0.4.1 lib/gruff/mini/side_bar.rb
teejayvanslyke-gruff-0.4.0 lib/gruff/mini/side_bar.rb
teejayvanslyke-gruff-0.3.8 lib/gruff/mini/side_bar.rb
teejayvanslyke-gruff-0.3.6 lib/gruff/mini/side_bar.rb
gruff-0.3.6 lib/gruff/mini/side_bar.rb
gruff-0.2.9 lib/gruff/mini/side_bar.rb
gruff-0.3.0 lib/gruff/mini/side_bar.rb
gruff-0.3.3 lib/gruff/mini/side_bar.rb
gruff-0.3.4 lib/gruff/mini/side_bar.rb
gruff-0.3.1 lib/gruff/mini/side_bar.rb