From d9cd9b48735cdb7e349a4b4b0456f575d4bf007d Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 12 Apr 2011 17:24:16 +0000 Subject: [PATCH] 2011-04-12 Miguel de Dios * 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 --- pandora_console/ChangeLog | 5 +++++ .../include/graphs/functions_fsgraph.php | 15 +++------------ 2 files changed, 8 insertions(+), 12 deletions(-) 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 + + * include/graphs/functions_fsgraph.php: fixed the "fs_area_graph" when + haven't $long_index. + 2011-04-12 Javier Lanz * 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) {