mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Applied a reduction coefficient to the line thickness of the static line graphs. Ticket #3765
This commit is contained in:
parent
f5799dccf8
commit
038769eae1
@ -703,7 +703,9 @@ function pch_vertical_graph ($graph_type, $index, $data, $width, $height,
|
|||||||
$MyData->setPalette($point_id, $palette_color);*/
|
$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");
|
//$MyData->addPoints($data,"Yaxis");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user