lib/gruff/base.rb
# Draws column labels below graph, centered over x_offset
#--
# TODO Allow WestGravity as an option
Draws column labels below graph, centered over x_offset
TODO Allow WestGravity as an option
Draws column labels below graph centered over x_offset TODO Allow WestGravity as an option
def draw_label(x_offset, index, gravity = Magick::NorthGravity)
      draw_unique_label(index) do
        y_offset = @graph_bottom + LABEL_MARGIN
        y_offset += @label_stagger_height if index.odd?
        if x_offset >= @graph_left && x_offset <= @graph_right
          draw_label_at(1.0, 1.0, x_offset, y_offset, @labels[index], gravity)
        end
      end
    end
def draw_label ( x_offset , index , gravity = Magick :: NorthGravity ) draw_unique_label ( index ) do y_offset = @graph_bottom + LABEL_MARGIN y_offset += @label_stagger_height if index . odd? if x_offset >= @graph_left && x_offset <= @graph_right draw_label_at ( 1.0 , 1.0 , x_offset , y_offset , @labels [ index ] , gravity ) end end end
Draws column labels below graph, centered over x_offset
TODO Allow WestGravity as an option
Draws column labels below graph centered over x_offset TODO Allow WestGravity as an option
# TESTME # FIXME: Consider chart types other than bar # TODO: See if index.odd? is the best stragegy
x_offset
<not_specific>
index
<not_specific>
gravity
<not_specific>