fixed errors in custom graph pdf percentil

This commit is contained in:
daniel 2017-03-06 15:19:19 +01:00
parent 7fc2e47b56
commit 74c8bf5539
2 changed files with 4 additions and 0 deletions

View File

@ -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 "/<img src='(.+)'>/"

View File

@ -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++;
}
}