mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
Merge branch 'ent-8202-consolas-visuales-hbars' into 'develop'
Clean magic number and define dynamic width Closes pandora_enterprise#8202 See merge request artica/pandorafms!4630
This commit is contained in:
commit
6c2ada3948
@ -4185,6 +4185,9 @@ function generator_chart_to_pdf(
|
|||||||
) {
|
) {
|
||||||
$width_img = 650;
|
$width_img = 650;
|
||||||
$height_img = ($params['height'] + 50);
|
$height_img = ($params['height'] + 50);
|
||||||
|
} else if ($type_graph_pdf === 'hbar') {
|
||||||
|
$width_img = ($params['width'] ?? 550);
|
||||||
|
$height_img = $params['height'];
|
||||||
} else {
|
} else {
|
||||||
$width_img = 550;
|
$width_img = 550;
|
||||||
$height_img = $params['height'];
|
$height_img = $params['height'];
|
||||||
|
@ -553,11 +553,6 @@ function flot_hcolumn_chart($graph_data, $width, $height, $water_mark, $font='',
|
|||||||
{
|
{
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
if ($pdf === true) {
|
|
||||||
$background_color = 'white';
|
|
||||||
$tick_color = '#000';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Include_javascript_dependencies_flot_graph().
|
// Include_javascript_dependencies_flot_graph().
|
||||||
$return = '';
|
$return = '';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user