Skip to content

Commit

Permalink
Merge pull request #385 from Necrote/master
Browse files Browse the repository at this point in the history
generalized fix solidgauge squares algorithm issue
  • Loading branch information
paradoxxxzero committed Jul 5, 2017
2 parents 3397077 + 21c6376 commit 40be961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygal/graph/solidgauge.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _squares(self):
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:
Expand Down

0 comments on commit 40be961

Please sign in to comment.