From 3a7fc5e3606ddaf84e6f13a71c8bb2a65d360549 Mon Sep 17 00:00:00 2001 From: Filippo Date: Fri, 21 Apr 2017 11:05:23 +0200 Subject: [PATCH] Fix solidgauge squares algorithm --- pygal/graph/solidgauge.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pygal/graph/solidgauge.py b/pygal/graph/solidgauge.py index ae673d6..d050fff 100644 --- a/pygal/graph/solidgauge.py +++ b/pygal/graph/solidgauge.py @@ -130,6 +130,8 @@ class SolidGauge(Graph): _x = int(n_series_ / len(self.series)) if len(self.series) == 5: _x, _y = 2, 3 + if len(self.series) == 8: + _x, _y = 3, 3 if abs(_x - _y) > 2: _sq = 3 while (_x * _y) - 1 < len(self.series):