diff --git a/pygal/graph/graph.py b/pygal/graph/graph.py index 07bc5ef..10c926e 100644 --- a/pygal/graph/graph.py +++ b/pygal/graph/graph.py @@ -267,7 +267,7 @@ class Graph(BaseGraph): 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 - (