mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
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['backgroundColor'] = $backgroundColor;
|
||||||
$graph['unit'] = $unit;
|
$graph['unit'] = $unit;
|
||||||
$graph['series_type'] = $series_type;
|
$graph['series_type'] = $series_type;
|
||||||
|
$graph['percentil'] = $percentil_values;
|
||||||
|
|
||||||
$id_graph = serialize_in_temp($graph, null, $ttl);
|
$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='(.+)'>/"
|
// 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;
|
$i=0;
|
||||||
foreach ($data as $key => $value) {
|
foreach ($data as $key => $value) {
|
||||||
$data[$key]['percentil' . $j] = $percentil[$j][$i];
|
$data[$key]['percentil' . $j] = $percentil[$j][$i];
|
||||||
|
if($graph_type == 'area'){
|
||||||
|
$series_type['percentil' . $j] = 'line';
|
||||||
|
}
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user