lib/gruff/ldata_mixin.rb
# For ldata, draw the legend entry as a line
For ldata, draw the legend entry as a line
For ldata draw the legend entry as a line
def draw_legend_label_box_as_line(index,current_x_offset,current_y_offset)
    ldata_row = @norm_ldata[index - @data.length]
    x1 = current_x_offset
    y1 = current_y_offset - @legend_box_size / 2.0
    x2 = current_x_offset + @legend_box_size
    y2 = current_y_offset + @legend_box_size / 2.0
    draw_ldata_line(ldata_row[Gruff::Base::DATA_ATTRS_INDEX],
		    x1, y1, x2, y2, (x1 + x2)/2.0, (y1 + y2)/2.0)
  end
def draw_legend_label_box_as_line ( index , current_x_offset , current_y_offset ) ldata_row = @norm_ldata [ index - @data . length ] x1 = current_x_offset y1 = current_y_offset - @legend_box_size / 2.0 x2 = current_x_offset + @legend_box_size y2 = current_y_offset + @legend_box_size / 2.0 draw_ldata_line ( ldata_row [ Gruff :: Base :: DATA_ATTRS_INDEX ] , x1 , y1 , x2 , y2 , ( x1 + x2 ) / 2.0 , ( y1 + y2 ) / 2.0 ) end
For ldata, draw the legend entry as a line
For ldata draw the legend entry as a line
index
<not_specific>
current_x_offset
<not_specific>
current_y_offset
<not_specific>