fixed errors in custom graph pdf percentil
This commit is contained in:
parent
7fc2e47b56
commit
74c8bf5539
|
@ -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='(.+)'>/"
|
||||
|
|
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue