From 21c63768a2941ca116e9744bb91ca7d37b3f25c9 Mon Sep 17 00:00:00 2001 From: Necrote Date: Wed, 5 Jul 2017 12:22:12 +0530 Subject: [PATCH] fixed solidgauge squares algorithm issue --- pygal/graph/solidgauge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygal/graph/solidgauge.py b/pygal/graph/solidgauge.py index 4fc9189..fc32b87 100644 --- a/pygal/graph/solidgauge.py +++ b/pygal/graph/solidgauge.py @@ -126,7 +126,7 @@ class SolidGauge(Graph): n_series_ = n_series_ / i i = i + 1 _y = int(n_series_) - _x = int(n_series_ / len(self.series)) + _x = int(len(self.series) / _y) if len(self.series) == 5: _x, _y = 2, 3 if abs(_x - _y) > 2: