diff --git a/pandora_console/include/graphs/fgraph.php b/pandora_console/include/graphs/fgraph.php index a5170b8191..8f6183f66a 100644 --- a/pandora_console/include/graphs/fgraph.php +++ b/pandora_console/include/graphs/fgraph.php @@ -287,6 +287,7 @@ function area_graph($flash_chart, $chart_data, $width, $height, $color, $graph['backgroundColor'] = $backgroundColor; $graph['unit'] = $unit; $graph['series_type'] = $series_type; + $graph['percentil'] = $percentil_values; $id_graph = serialize_in_temp($graph, null, $ttl); // Warning: This string is used in the function "api_get_module_graph" from 'functions_api.php' with the regec patern "//" diff --git a/pandora_console/include/graphs/functions_pchart.php b/pandora_console/include/graphs/functions_pchart.php index 8328af866c..14dc2e96eb 100644 --- a/pandora_console/include/graphs/functions_pchart.php +++ b/pandora_console/include/graphs/functions_pchart.php @@ -230,6 +230,9 @@ switch ($graph_type) { $i=0; foreach ($data as $key => $value) { $data[$key]['percentil' . $j] = $percentil[$j][$i]; + if($graph_type == 'area'){ + $series_type['percentil' . $j] = 'line'; + } $i++; } }