ticket integria: 3929 fixed pdf report graph repeat color for more 15 modules #19
This commit is contained in:
parent
5928f22d8d
commit
062aefeafc
|
@ -285,6 +285,18 @@ foreach ($colors as $i => $color) {
|
||||||
|
|
||||||
$rgb_color[$i]['alpha'] = $color['alpha'];
|
$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) {
|
/*foreach($colors as $i => $color) {
|
||||||
if (isset($color['border'])) {
|
if (isset($color['border'])) {
|
||||||
|
|
Loading…
Reference in New Issue