Browse Source

Fix empty bottom legend

pull/35/head
Florian Mounier 12 years ago
parent
commit
f941c94c22
  1. 2
      pygal/graph/graph.py

2
pygal/graph/graph.py

@ -267,7 +267,7 @@ class Graph(BaseGraph):
x = self.margin.left + 10 x = self.margin.left + 10
y = (self.margin.top + self.view.height + y = (self.margin.top + self.view.height +
self._x_labels_height + 10) self._x_labels_height + 10)
cols = ceil(sqrt(self._order)) cols = ceil(sqrt(self._order)) or 1
if not truncation: if not truncation:
available_space = self.view.width / cols - ( available_space = self.view.width / cols - (

Loading…
Cancel
Save