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:
mdtrooper 2011-04-12 17:24:16 +00:00
parent 153c05aa31
commit d9cd9b4873
2 changed files with 8 additions and 12 deletions

View File

@ -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

View File

@ -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) {