lib/gruff/dot.rb
# Instead of base class version, draws vertical background lines and label
Instead of base class version, draws vertical background lines and label
Instead of base class version draws vertical background lines and label
def draw_line_markers
    return if @hide_line_markers
    (0..marker_count).each do |index|
      marker_label = BigDecimal(index.to_s) * BigDecimal(@increment.to_s) + BigDecimal(minimum_value.to_s)
      x = @graph_left + (marker_label - minimum_value) * @graph_width / @spread
      line_renderer = Gruff::Renderer::Line.new(renderer, color: @marker_color, shadow_color: @marker_shadow_color)
      line_renderer.render(x, @graph_bottom, x, @graph_bottom + 5)
      unless @hide_line_numbers
        label = y_axis_label(marker_label, @increment)
        text_renderer = Gruff::Renderer::Text.new(renderer, label, font: @marker_font)
        text_renderer.add_to_render_queue(0, 0, x, @graph_bottom + (LABEL_MARGIN * 1.5), Magick::CenterGravity)
      end
    end
  end
def draw_line_markers return if @hide_line_markers ( 0 .. marker_count ) . each do | index | marker_label = BigDecimal ( index . to_s ) * BigDecimal ( @increment . to_s ) + BigDecimal ( minimum_value . to_s ) x = @graph_left + ( marker_label - minimum_value ) * @graph_width / @spread line_renderer = Gruff :: Renderer :: Line . new ( renderer , color : @marker_color , shadow_color : @marker_shadow_color ) line_renderer . render ( x , @graph_bottom , x , @graph_bottom + 5 ) unless @hide_line_numbers label = y_axis_label ( marker_label , @increment ) text_renderer = Gruff :: Renderer :: Text . new ( renderer , label , font : @marker_font ) text_renderer . add_to_render_queue ( 0 , 0 , x , @graph_bottom + ( LABEL_MARGIN * 1.5 ) , Magick :: CenterGravity ) end end end
Instead of base class version, draws vertical background lines and label
Instead of base class version draws vertical background lines and label