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

This commit is contained in:
daniel 2016-08-11 17:13:06 +02:00
parent 5928f22d8d
commit 062aefeafc
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'])) {