fix errors in new charts pandora_enterprise#9554

This commit is contained in:
daniel 2022-12-21 11:49:57 +01:00
parent 36eda00ae6
commit 872b079b20
1 changed files with 4 additions and 5 deletions

View File

@ -693,11 +693,10 @@ function get_build_setup_charts($type, $options, $data)
$legend->setAlign($legendAlign);
// Defaults fonts legends.
$legend->labels()->getFonts()->setFamily((empty($config['fontpath']) === true) ? 'Lato' : $config['fontpath']);
$legend->labels()->getFonts()->setStyle('normal');
$legend->labels()->getFonts()->setWeight(600);
$legend->labels()->getFonts()->setSize(((int) $config['font_size'] + 2));
// $legend->labels()->getFonts()->setFamily((empty($config['fontpath']) === true) ? 'Lato' : $config['fontpath']);
// $legend->labels()->getFonts()->setStyle('normal');
// $legend->labels()->getFonts()->setWeight(600);
// $legend->labels()->getFonts()->setSize(((int) $config['font_size'] + 2));
if (isset($options['legend']['fonts']) === true
&& empty($options['legend']['fonts']) === false
&& is_array($options['legend']['fonts']) === true