#12078 Add hide grid

This commit is contained in:
miguel angel rasteu 2023-09-20 13:47:28 +02:00
parent ff2cc62c4f
commit 458e5ffd21
1 changed files with 7 additions and 0 deletions

View File

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