diff --git a/pandora_console/include/functions_reporting_html.php b/pandora_console/include/functions_reporting_html.php index f7874d5078..30677b40a0 100644 --- a/pandora_console/include/functions_reporting_html.php +++ b/pandora_console/include/functions_reporting_html.php @@ -2053,7 +2053,7 @@ function reporting_html_monitor_report($table, $item, $mini) { function reporting_html_graph($table, $item) { $table->colspan['chart']['cell'] = 3; $table->cellstyle['chart']['cell'] = 'text-align: center;'; - $table->data['chart']['cell'] = $item['chart']; + $table->data['chart']['cell'] = $item['chart'].'



'; } function reporting_html_prediction_date($table, $item, $mini) { diff --git a/pandora_console/include/graphs/flot/pandora.flot.js b/pandora_console/include/graphs/flot/pandora.flot.js index ecd279d8d7..be0f154ac3 100644 --- a/pandora_console/include/graphs/flot/pandora.flot.js +++ b/pandora_console/include/graphs/flot/pandora.flot.js @@ -1723,7 +1723,7 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend, if (currentRanges == null || (currentRanges.xaxis.from < j && j < currentRanges.xaxis.to)) { $('#timestamp_'+graph_id).show(); // If no legend, the timestamp labels are short and with value - if (legends.length == 0) { + if (legend.length == 0) { $('#timestamp_'+graph_id).text(labels[j] + ' (' + parseFloat(y).toFixed(2) + ')'); } else { @@ -1982,7 +1982,7 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend, // Adjust the menu image on top of the plot // If there is no legend we increase top-padding to make space to the menu - if (legends.length == 0) { + if (legend.length == 0) { $('#menu_' + graph_id).parent().css('padding-top', $('#menu_' + graph_id).css('height')); }