From da80a1ad82e2d09ac899a3bd8d5a530b9f84abe3 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Wed, 22 Jul 2015 10:33:49 +0200 Subject: [PATCH] Fixed creation hbar, not show all legend. Tiquet: #2498 --- pandora_console/include/graphs/functions_pchart.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pandora_console/include/graphs/functions_pchart.php b/pandora_console/include/graphs/functions_pchart.php index 397f405988..b231d889f1 100755 --- a/pandora_console/include/graphs/functions_pchart.php +++ b/pandora_console/include/graphs/functions_pchart.php @@ -161,14 +161,8 @@ switch($graph_type) { $data_values[$name][] = $val; } - if (($c % $step) == 0) { - $data_keys[] = $i; - } - else { - $data_keys[] = ""; - } - - $c++; + $data_keys[] = $i; + } $fine_colors = array();