Fix issues with grid and background color

This commit is contained in:
Jose Gonzalez 2022-01-14 13:56:08 +01:00
parent b34b89f514
commit 0f549ce813
2 changed files with 4 additions and 6 deletions

View File

@ -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) {

View File

@ -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 = '';