Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit be1b8f4b7473f6d4887b8809f0cdefb87cb7dcdd 2 parents fc10887 + 566e6d2
Uwe Kubosch donv authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/gruff/pie.rb
2  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))
Please sign in to comment.
Something went wrong with that request. Please try again.