Browse Source

Merge pull request #385 from Necrote/master

generalized fix solidgauge squares algorithm issue
pull/375/merge
Mounier Florian 8 years ago committed by GitHub
parent
commit
40be961a18
  1. 2
      pygal/graph/solidgauge.py

2
pygal/graph/solidgauge.py

@ -126,7 +126,7 @@ class SolidGauge(Graph):
n_series_ = n_series_ / i n_series_ = n_series_ / i
i = i + 1 i = i + 1
_y = int(n_series_) _y = int(n_series_)
_x = int(n_series_ / len(self.series)) _x = int(len(self.series) / _y)
if len(self.series) == 5: if len(self.series) == 5:
_x, _y = 2, 3 _x, _y = 2, 3
if abs(_x - _y) > 2: if abs(_x - _y) > 2:

Loading…
Cancel
Save