From 44cb4b848bb73f80231930941f8e38f11df4a216 Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Tue, 3 Jun 2014 17:22:46 +0200 Subject: [PATCH] Remove color limit for legends too. Fixes #128 --- pygal/graph/graph.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pygal/graph/graph.py b/pygal/graph/graph.py index fa46caf..ac68ae9 100644 --- a/pygal/graph/graph.py +++ b/pygal/graph/graph.py @@ -346,7 +346,8 @@ class Graph(BaseGraph): ) / 2, width=self.legend_box_size, height=self.legend_box_size, - class_="color-%d reactive" % (global_serie_number % 16) + class_="color-%d reactive" % ( + global_serie_number % len(self.style['colors'])) ) if isinstance(title, dict):