From 038769eae1e272c9332511d88253404df906ab14 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Thu, 2 Jun 2016 18:02:26 +0200 Subject: [PATCH] Applied a reduction coefficient to the line thickness of the static line graphs. Ticket #3765 --- 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 5433755441..4cd14c9084 100644 --- a/pandora_console/include/graphs/functions_pchart.php +++ b/pandora_console/include/graphs/functions_pchart.php @@ -703,7 +703,9 @@ function pch_vertical_graph ($graph_type, $index, $data, $width, $height, $MyData->setPalette($point_id, $palette_color);*/ } - $MyData->setSerieWeight($point_id, $config['custom_graph_width']); + // The weight of the line is not calculated in pixels, so it needs to be transformed + $reduction_coefficient = 0.31; + $MyData->setSerieWeight($point_id, $config['custom_graph_width'] * $reduction_coefficient); } //$MyData->addPoints($data,"Yaxis");