Permalink
Browse files

Merge pull request #43 from albertein/fix_issue_25

Fixed issue #25
  • Loading branch information...
2 parents 00b34ec + 2e1dc1c commit 2b643ac0d6927137d57abb029f60c9b9776da3ee @donv donv committed Dec 5, 2012
Showing with 2 additions and 13 deletions.
  1. +2 −13 lib/gruff/area.rb
View
15 lib/gruff/area.rb
@@ -21,19 +21,8 @@ def draw
new_x = @graph_left + (@x_increment * index)
new_y = @graph_top + (@graph_height - data_point * @graph_height)
- if prev_x > 0 and prev_y > 0 then
- poly_points << new_x
- poly_points << new_y
-
- #@d = @d.polyline(prev_x, prev_y, new_x, new_y)
- else
- poly_points << @graph_left
- poly_points << @graph_bottom - 1
- poly_points << new_x
- poly_points << new_y
-
- #@d = @d.polyline(@graph_left, @graph_bottom, new_x, new_y)
- end
+ poly_points << new_x
+ poly_points << new_y
draw_label(new_x, index)

0 comments on commit 2b643ac

Please sign in to comment.