Browse Source

fix label color when the number of series is more than the number of colors available in the style

pull/350/head
Brandhor 8 years ago
parent
commit
35307acc12
  1. 3
      pygal/graph/graph.py

3
pygal/graph/graph.py

@ -391,8 +391,7 @@ class Graph(PublicApi):
) / 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):

Loading…
Cancel
Save