diff --git a/pandora_console/include/ajax/events.php b/pandora_console/include/ajax/events.php
index 1e9d744739..fbab653bf7 100644
--- a/pandora_console/include/ajax/events.php
+++ b/pandora_console/include/ajax/events.php
@@ -2764,9 +2764,7 @@ if ($draw_row_response_info === true) {
if ((bool) $draw_events_graph === true) {
$filter = get_parameter('filter');
- $output = '';
- hd($filter, true);
- $output .= '
';
+ $graph = '
';
$graph .= vbar_graph($chart, $options);
$graph .= '
';
- echo $graph;
+ return $graph;
}
diff --git a/pandora_console/include/graphs/fgraph.php b/pandora_console/include/graphs/fgraph.php
index 494ec9c010..d7f3e3ed7b 100644
--- a/pandora_console/include/graphs/fgraph.php
+++ b/pandora_console/include/graphs/fgraph.php
@@ -1187,6 +1187,12 @@ function get_build_setup_charts($type, $options, $data)
) {
$colors = $options['colors'];
$borders = $options['colors'];
+ if (isset($options['border']) === true && (bool) $options['border'] === false) {
+ $borders = [];
+ foreach ($colors as $color) {
+ $borders[] = 'rgba(0, 0, 0, 0)';
+ }
+ }
} else {
// Colors.
$defaultColor = [];
diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php
index 076d48e60a..febdb33156 100644
--- a/pandora_console/operation/events/events.php
+++ b/pandora_console/operation/events/events.php
@@ -2728,8 +2728,8 @@ try {
$graph_div = html_print_div(
[
'id' => 'events-graph',
- 'class' => 'mrgn_top_10px mrg_btt_60 invisible',
- 'style' => 'text-align: left;'.$graph_background,
+ 'class' => 'invisible',
+ 'style' => 'margin-bottom: 10px; text-align: left;'.$graph_background,
],
true
);
@@ -2750,7 +2750,6 @@ try {
true
);
- hd(get_parameter('filter'), true);
// Print datatable.
@@ -3502,6 +3501,10 @@ $(document).ready( function() {
$("#button-remove_without").click(function() {
click_button_remove_tag("without");
});
+
+ $("#button-events_form_search_bt").click(function(){
+ show_events_graph();
+ });
//Autorefresh in fullscreen
@@ -3737,8 +3740,6 @@ function show_events_graph(){
$('#events-graph')
.empty()
.html(data);
- console.log('success');
- console.log(data);
}
});
}