Skip to content

Commit

Permalink
fix label color when the number of series is more than the number of …
Browse files Browse the repository at this point in the history
…colors available in the style
  • Loading branch information
Brandhor committed Oct 20, 2016
1 parent 9c9e337 commit 35307ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pygal/graph/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,7 @@ def _legend(self):
) / 2,
width=self.legend_box_size,
height=self.legend_box_size,
class_="color-%d reactive" % (
serie_number % len(self.style.colors))
class_="color-%d reactive" % serie_number
)

if isinstance(title, dict):
Expand Down

0 comments on commit 35307ac

Please sign in to comment.