Applied a reduction coefficient to the line thickness of the static line graphs. Ticket #3765

(cherry picked from commit 4f632f55e6b866b91a92fd9732b5e281d5882836)
This commit is contained in:
Alejandro Gallardo Escobar 2016-06-02 18:02:26 +02:00
parent 9f2e523136
commit 3feabd4597
1 changed files with 3 additions and 1 deletions

View File

@ -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");