ticket integria: 3929 fixed pdf report graph repeat color for more 15 modules #19

(cherry picked from commit 062aefeafc)
This commit is contained in:
daniel 2016-08-11 17:13:06 +02:00
parent a7f16ea182
commit 78d87cc12b
1 changed files with 12 additions and 0 deletions

View File

@ -285,6 +285,18 @@ foreach ($colors as $i => $color) {
$rgb_color[$i]['alpha'] = $color['alpha'];
}
//add for report with max 15 modules comparation repeat
$countlegend = count($legend);
if($countlegend > 15){
$i=16;
$l=0;
while ($countlegend > 15){
$rgb_color[$i] = $rgb_color[$l];
$l++;
$i++;
$countlegend--;
}
}
/*foreach($colors as $i => $color) {
if (isset($color['border'])) {