From 0f549ce813ff609e7351554308de46ede534da1e Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Fri, 14 Jan 2022 13:56:08 +0100 Subject: [PATCH] Fix issues with grid and background color --- pandora_console/include/functions.php | 5 ++++- pandora_console/include/graphs/functions_flot.php | 5 ----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index d2c75dc494..baaa10a317 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -4185,8 +4185,11 @@ function generator_chart_to_pdf( ) { $width_img = 650; $height_img = ($params['height'] + 50); + } else if ($type_graph_pdf === 'hbar') { + $width_img = ($params['width'] ?? 550); + $height_img = $params['height']; } else { - $width_img = $params['width']; + $width_img = 550; $height_img = $params['height']; if ((int) $params['landscape'] === 1) { diff --git a/pandora_console/include/graphs/functions_flot.php b/pandora_console/include/graphs/functions_flot.php index 3dd139bf3a..041f64ff12 100644 --- a/pandora_console/include/graphs/functions_flot.php +++ b/pandora_console/include/graphs/functions_flot.php @@ -553,11 +553,6 @@ function flot_hcolumn_chart($graph_data, $width, $height, $water_mark, $font='', { global $config; - if ($pdf === true) { - $background_color = 'white'; - $tick_color = '#000'; - } - // Include_javascript_dependencies_flot_graph(). $return = '';