Permalink
Browse files

Merge pull request #14 from scnaegle/master

* Make use of the TEXT_OFFSET_PERCENTAGE const variable
* Thanks for the contribution.
  • Loading branch information...
2 parents fc10887 + 566e6d2 commit be1b8f4b7473f6d4887b8809f0cdefb87cb7dcdd @donv donv committed Nov 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/gruff/pie.rb
View
@@ -92,7 +92,7 @@ def draw_label(center_x, center_y, angle, radius, amount)
x_offset = center_x # + 15.0 # The label points need to be tweaked slightly
y_offset = center_y # This one doesn't though
radius_offset = (radius + r_offset)
- ellipse_factor = radius_offset * 0.15
+ ellipse_factor = radius_offset * TEXT_OFFSET_PERCENTAGE
x = x_offset + ((radius_offset + ellipse_factor) * Math.cos(angle.deg2rad))
y = y_offset + (radius_offset * Math.sin(angle.deg2rad))

0 comments on commit be1b8f4

Please sign in to comment.