Add a condition to 'restart' the color index for the status pie chart
This commit is contained in:
parent
e8e1ada776
commit
fbb3684022
1 changed files with 4 additions and 0 deletions
|
@ -334,7 +334,11 @@ class Helper
|
||||||
'#92896B',
|
'#92896B',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
$total_colors = count($colors);
|
||||||
|
|
||||||
|
if ($index >= $total_colors) {
|
||||||
|
$index = $index - $total_colors;
|
||||||
|
}
|
||||||
|
|
||||||
return $colors[$index];
|
return $colors[$index];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue