From 6e56072c823ed2f7314f34da1c506c43afeb0946 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Tue, 10 Nov 2015 08:55:34 +0100 Subject: [PATCH] Add increase line width in pChart graphs (cherry picked from commit dabf18897000180086900035a20bc13cb39d5383) --- pandora_console/include/graphs/functions_pchart.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/graphs/functions_pchart.php b/pandora_console/include/graphs/functions_pchart.php index cfd8b7bb7a..2803ea4224 100644 --- a/pandora_console/include/graphs/functions_pchart.php +++ b/pandora_console/include/graphs/functions_pchart.php @@ -633,6 +633,8 @@ function pch_vertical_graph ($graph_type, $index, $data, $width, $height, $legend = array(), $font, $antialiasing, $water_mark = '', $font_size, $backgroundColor = 'white', $unit = '', $series_type = array()) { + global $config; + /* CAT:Vertical Charts */ if (!is_array($legend) || empty($legend)) { unset($legend); @@ -707,7 +709,7 @@ function pch_vertical_graph ($graph_type, $index, $data, $width, $height, $MyData->setPalette($point_id, $palette_color);*/ } - $MyData->setSerieWeight($point_id, 0); + $MyData->setSerieWeight($point_id, $config['custom_graph_width']); } //$MyData->addPoints($data,"Yaxis");