Fixed reporting custom graph

This commit is contained in:
danielmaya 2017-12-18 13:12:29 +01:00
parent ee1b915735
commit b65d649750
2 changed files with 13 additions and 7 deletions

View File

@ -2181,7 +2181,7 @@ function graphic_combined_module ($module_list, $weight_list, $period,
}
if(!$modules_series) {
if(is_null($percentil)) {
if(empty($percentil)) {
array_splice($module_name_list,0,count($module_name_list));
} else {
array_splice($module_name_list,0,count($module_name_list)-(count($module_name_list)/2));
@ -2189,7 +2189,7 @@ function graphic_combined_module ($module_list, $weight_list, $period,
array_unshift($module_name_list,'<span style=\"font-size:' . ($config['font_size']) . 'pt;font-family: smallfontFont;\" >' . __('summatory'). '</span>');
array_unshift($module_name_list,'<span style=\"font-size:' . ($config['font_size']) . 'pt;font-family: smallfontFont;\" >' . __('average'). '</span>');
} else {
if(is_null($percentil)) {
if(empty($percentil)) {
array_push($module_name_list,'<span style=\"font-size:' . ($config['font_size']) . 'pt;font-family: smallfontFont;\" >' . __('summatory'). '</span>');
array_push($module_name_list,'<span style=\"font-size:' . ($config['font_size']) . 'pt;font-family: smallfontFont;\" >' . __('average'). '</span>');
} else {
@ -2209,14 +2209,14 @@ function graphic_combined_module ($module_list, $weight_list, $period,
}
if(!$modules_series) {
if(is_null($percentil)) {
if(empty($percentil)) {
array_splice($module_name_list,0,count($module_name_list));
} else {
array_splice($module_name_list,0,count($module_name_list)-(count($module_name_list)/2));
}
array_unshift($module_name_list,'<span style=\"font-size:' . ($config['font_size']) . 'pt;font-family: smallfontFont;\" >' . __('summatory'). '</span>');
} else {
if(is_null($percentil)) {
if(empty($percentil)) {
array_push($module_name_list,'<span style=\"font-size:' . ($config['font_size']) . 'pt;font-family: smallfontFont;\" >' . __('summatory'). '</span>');
} else {
array_splice($module_name_list,(count($module_name_list)/2),0,'<span style=\"font-size:' . ($config['font_size']) . 'pt;font-family: smallfontFont;\" >' . __('summatory'). '</span>');
@ -2234,14 +2234,14 @@ function graphic_combined_module ($module_list, $weight_list, $period,
}
if(!$modules_series) {
if(is_null($percentil)) {
if(empty($percentil)) {
array_splice($module_name_list,0,count($module_name_list));
} else {
array_splice($module_name_list,0,count($module_name_list)-(count($module_name_list)/2));
}
array_unshift($module_name_list,'<span style=\"font-size:' . ($config['font_size']) . 'pt;font-family: smallfontFont;\" >' . __('average'). '</span>');
} else {
if(is_null($percentil)) {
if(empty($percentil)) {
array_push($module_name_list,'<span style=\"font-size:' . ($config['font_size']) . 'pt;font-family: smallfontFont;\" >' . __('average'). '</span>');
} else {
array_splice($module_name_list,(count($module_name_list)/2),0,'<span style=\"font-size:' . ($config['font_size']) . 'pt;font-family: smallfontFont;\" >' . __('average'). '</span>');

View File

@ -6513,7 +6513,13 @@ function reporting_custom_graph($report, $content, $type = 'dinamic',
$labels,
false,
false,
$graph["percentil"]
$graph["percentil"],
false,
false,
false,
$graph["summatory_series"],
$graph["average_series"],
$graph["modules_series"]
);
break;
case 'data':