diff --git a/src/fr/devinsy/statoolinfos/htmlize/Htmlizer.java b/src/fr/devinsy/statoolinfos/htmlize/Htmlizer.java
index 4490ba0..7bf6f97 100644
--- a/src/fr/devinsy/statoolinfos/htmlize/Htmlizer.java
+++ b/src/fr/devinsy/statoolinfos/htmlize/Htmlizer.java
@@ -295,9 +295,12 @@ public class Htmlizer
PieChart pie = new PieChart("Pays des membres");
int index = 0;
+ int maxIndex = ChartColor.values().length;
for (String country : stats.keySet())
{
- pie.add(country, stats.get(country), ChartColor.values()[index]);
+ pie.add(country, stats.get(country), ChartColor.values()[index % maxIndex]);
+
+ index += 1;
}
pie.setLegendPosition(Position.RIGHT);
@@ -373,7 +376,7 @@ public class Htmlizer
PieChart pie = new PieChart("Pays des services");
int index = 0;
- int maxIndex = stats.keySet().size();
+ int maxIndex = ChartColor.values().length;
for (String country : stats.keySet())
{
pie.add(country, stats.get(country), ChartColor.values()[index % maxIndex]);