2011-04-12 Miguel de Dios <miguel.dedios@artica.es>
* include/graphs/functions_fsgraph.php: fixed the "fs_area_graph" when haven't $long_index. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4196 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
153c05aa31
commit
d9cd9b4873
|
@ -1,3 +1,8 @@
|
||||||
|
2011-04-12 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/graphs/functions_fsgraph.php: fixed the "fs_area_graph" when
|
||||||
|
haven't $long_index.
|
||||||
|
|
||||||
2011-04-12 Javier Lanz <javier.lanz@artica.es>
|
2011-04-12 Javier Lanz <javier.lanz@artica.es>
|
||||||
|
|
||||||
* include/functions_reporting.php: Fixed the functionality for the sla
|
* include/functions_reporting.php: Fixed the functionality for the sla
|
||||||
|
|
|
@ -350,18 +350,6 @@ function fs_area_graph($chart_data, $width, $height, $color, $legend, $long_inde
|
||||||
$data2 = array();
|
$data2 = array();
|
||||||
$count = 0;
|
$count = 0;
|
||||||
foreach($chart_data as $i =>$values) {
|
foreach($chart_data as $i =>$values) {
|
||||||
// $count = 0;
|
|
||||||
// $step = 10;
|
|
||||||
// $num_vlines = 0;
|
|
||||||
//
|
|
||||||
// if ($count++ % $step == 0) {
|
|
||||||
// $show_name = '1';
|
|
||||||
// $num_vlines++;
|
|
||||||
// }
|
|
||||||
// else {
|
|
||||||
// $show_name = '0';
|
|
||||||
// }
|
|
||||||
|
|
||||||
$count++;
|
$count++;
|
||||||
$show_name = '0';
|
$show_name = '0';
|
||||||
if (($count % $step) == 0) {
|
if (($count % $step) == 0) {
|
||||||
|
@ -373,6 +361,9 @@ function fs_area_graph($chart_data, $width, $height, $color, $legend, $long_inde
|
||||||
'hoverText=' . $long_index[$i] .
|
'hoverText=' . $long_index[$i] .
|
||||||
';showName=' . $show_name);
|
';showName=' . $show_name);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$chart->addCategory($i, 'showName=' . $show_name);
|
||||||
|
}
|
||||||
|
|
||||||
$c = 0;
|
$c = 0;
|
||||||
foreach($values as $i2 => $value) {
|
foreach($values as $i2 => $value) {
|
||||||
|
|
Loading…
Reference in New Issue