diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index c51b7fde4d..e97f9ec10a 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -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> * include/functions_reporting.php: Fixed the functionality for the sla diff --git a/pandora_console/include/graphs/functions_fsgraph.php b/pandora_console/include/graphs/functions_fsgraph.php index 901ed759fa..9f9da5ce17 100755 --- a/pandora_console/include/graphs/functions_fsgraph.php +++ b/pandora_console/include/graphs/functions_fsgraph.php @@ -350,18 +350,6 @@ function fs_area_graph($chart_data, $width, $height, $color, $legend, $long_inde $data2 = array(); $count = 0; 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++; $show_name = '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] . ';showName=' . $show_name); } + else { + $chart->addCategory($i, 'showName=' . $show_name); + } $c = 0; foreach($values as $i2 => $value) {