diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php
index f2e350dc8f..08a41a00f2 100644
--- a/pandora_console/include/functions.php
+++ b/pandora_console/include/functions.php
@@ -3868,8 +3868,8 @@ function generator_chart_to_pdf($type_graph_pdf, $params, $params_combined=false
}
if ($type_graph_pdf === 'slicebar') {
- $height_img = 90;
- $params['height'] = 90;
+ $width_img = 360;
+ $height_img = 70;
}
$params_encode_json = urlencode(json_encode($params));
diff --git a/pandora_console/include/functions_reporting_html.php b/pandora_console/include/functions_reporting_html.php
index 6b29b70797..cd93334327 100644
--- a/pandora_console/include/functions_reporting_html.php
+++ b/pandora_console/include/functions_reporting_html.php
@@ -725,11 +725,14 @@ function reporting_html_SLA($table, $item, $mini, $pdf=0)
$table->data['error']['cell'] = __('There are no Agent/Modules defined');
}
- if (!empty($item['charts'])) {
+ if (empty($item['charts']) === false) {
$table1 = new stdClass();
- $table1->width = '99%';
+ $table1->width = '100%';
$table1->size = [];
$table1->size[0] = '10%';
+ if ($pdf !== 0) {
+ $table1->size[0] = '20%';
+ }
$table1->data = [];
@@ -3424,13 +3427,20 @@ function reporting_html_availability_graph($table, $item, $pdf=0)
// Check failover availability report.
if ($item['data'][$k_chart]['failover'] === '') {
$table1 = new stdClass();
- $table1->width = '99%';
+ $table1->width = '100%';
$table1->data = [];
$table1->size = [];
$table1->size[0] = '10%';
$table1->size[1] = '80%';
$table1->size[2] = '5%';
$table1->size[3] = '5%';
+ if ($pdf !== 0) {
+ $table1->size[0] = '20%';
+ $table1->size[1] = '60%';
+ $table1->size[2] = '10%';
+ $table1->size[3] = '10%';
+ }
+
$table1->data[0][0] = $chart['agent'].'
'.$chart['module'];
$table1->data[0][1] = $chart['chart'];
$table1->data[0][2] = "".$sla_value.'';
diff --git a/pandora_console/include/graphs/functions_d3.php b/pandora_console/include/graphs/functions_d3.php
index fea1273015..7dc30ab007 100644
--- a/pandora_console/include/graphs/functions_d3.php
+++ b/pandora_console/include/graphs/functions_d3.php
@@ -22,8 +22,8 @@ function include_javascript_d3($return=false)
$is_include_javascript = true;
if (is_metaconsole()) {
- $output .= '';
- $output .= '';
+ $output .= '';
+ $output .= '';
} else {
$output .= '';
$output .= '';
diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css
index a4f9636bf5..5822ab4eac 100644
--- a/pandora_console/include/styles/pandora.css
+++ b/pandora_console/include/styles/pandora.css
@@ -196,6 +196,10 @@ h4 {
color: #3f3f3f;
text-transform: none;
}
+
+table tbody tr td h4 {
+ color: #ffffff;
+}
a {
color: #3f3f3f;
text-decoration: none;