Skip to content

Commit

Permalink
Pie graph: do not show slices of 0° angle.
Browse files Browse the repository at this point in the history
These sometimes result in an ugly 1 pixel wide line.
  • Loading branch information
SimonSapin committed Dec 17, 2012
1 parent 5514968 commit 4bfc676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygal/svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def slice(
cy=center[1],
r=radius,
class_='slice reactive tooltip-trigger')
else:
elif angle > 0:
to = [absolute_project(radius, start_angle),
absolute_project(radius, start_angle + angle),
absolute_project(small_radius, start_angle + angle),
Expand Down

0 comments on commit 4bfc676

Please sign in to comment.