Skip to content

Commit

Permalink
Fix empty bottom legend
Browse files Browse the repository at this point in the history
  • Loading branch information
paradoxxxzero committed May 6, 2013
1 parent 64501f6 commit f941c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygal/graph/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def _legend(self):
x = self.margin.left + 10
y = (self.margin.top + self.view.height +
self._x_labels_height + 10)
cols = ceil(sqrt(self._order))
cols = ceil(sqrt(self._order)) or 1

if not truncation:
available_space = self.view.width / cols - (
Expand Down

0 comments on commit f941c94

Please sign in to comment.