lib/gruff/pie.rb in gruff-0.2.9 vs lib/gruff/pie.rb in gruff-0.3.0
- old
+ new
@@ -55,19 +55,21 @@
@d = @d.ellipse(center_x, center_y,
radius / 2.0, radius / 2.0,
prev_degrees, prev_degrees + current_degrees + 0.5) # <= +0.5 'fudge factor' gets rid of the ugly gaps
half_angle = prev_degrees + ((prev_degrees + current_degrees) - prev_degrees) / 2
-
- unless @hide_line_markers then
+
+ # Following line is commented to allow display of the percentiles
+ # bug appeared between r90 and r92
+ # unless @hide_line_markers then
# End the string with %% to escape the single %.
# RMagick must use sprintf with the string and % has special significance.
label_string = ((data_row[DATA_VALUES_INDEX][0] / total_sum) *
100.0).round.to_s + '%%'
@d = draw_label(center_x,center_y, half_angle,
radius + (radius * TEXT_OFFSET_PERCENTAGE),
label_string)
- end
+ # end
prev_degrees += current_degrees
end
end