Merge branch 'ent-13357-sql-horizontal-bar-graph-en-pdf-no-muestra-valor-del-porcentaje-del-elemento-mas-pequeno' into 'develop'

Ent 13357 sql horizontal bar graph en pdf no muestra valor del porcentaje del elemento mas pequeno

Closes pandora_enterprise#13357

See merge request artica/pandorafms!7249
This commit is contained in:
Diego Muñoz-Reja 2024-05-07 09:09:02 +00:00
commit 66b7efc533
2 changed files with 2 additions and 1 deletions

View File

@ -3509,7 +3509,7 @@ function graph_custom_sql_graph(
} }
if ((int) $ttl === 2) { if ((int) $ttl === 2) {
$options['dataLabel'] = ['display' => 'auto']; $options['dataLabel'] = ['display' => true];
if ($layout !== false && is_array($layout) === true) { if ($layout !== false && is_array($layout) === true) {
$options['layout'] = $layout; $options['layout'] = $layout;

View File

@ -6692,6 +6692,7 @@ function reporting_sql_graph(
switch ($type_sql_graph) { switch ($type_sql_graph) {
case 'sql_graph_hbar': case 'sql_graph_hbar':
default: default:
$layout = ['padding' => ['right' => '40']];
$return['type'] = 'sql_graph_hbar'; $return['type'] = 'sql_graph_hbar';
break; break;