From 35307acc12513362a53a04aab20ebb222ed9a600 Mon Sep 17 00:00:00 2001 From: Brandhor Date: Thu, 20 Oct 2016 10:51:01 +0200 Subject: [PATCH] fix label color when the number of series is more than the number of colors available in the style --- pygal/graph/graph.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pygal/graph/graph.py b/pygal/graph/graph.py index c993597..c89c201 100644 --- a/pygal/graph/graph.py +++ b/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):