diff --git a/pandora_console/include/graphs/fgraph.php b/pandora_console/include/graphs/fgraph.php index fd5258e2c2..ddb9050b15 100644 --- a/pandora_console/include/graphs/fgraph.php +++ b/pandora_console/include/graphs/fgraph.php @@ -988,6 +988,13 @@ function get_build_setup_charts($type, $options, $data) } } + // Set display grid true or false. + if (isset($options['grid']) === true) { + $scales = $chart->options()->getScales(); + $scales->getX()->grid()->setDrawOnChartArea($options['grid']); + $scales->getY()->grid()->setDrawOnChartArea($options['grid']); + } + // Radius is null maximum possible. if (isset($options['radius']) === true && empty($options['radius']) === false