Skip to content

Commit 05e986b

Browse files
committed
Modificar configuración de posición y flotante en BarChart
Se ajustó la posición del eje X a "bottom" y se estableció el título como no flotante con un desplazamiento en Y de 0. Estos cambios mejoran la consistencia visual del gráfico en el informe. Archivos modificados: BarChart.php
1 parent f3a51df commit 05e986b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/ReportChart/BarChart.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function render(array $dataChart = []): string
7373
. ' },'
7474
. ' xaxis: {'
7575
. ' categories: ' . json_encode($data['labels']) . ','
76-
. ' position: "' . ($horizontal ? 'bottom' : 'top') . '",'
76+
. ' position: "bottom",'
7777
. ' axisBorder: {'
7878
. ' show: false'
7979
. ' },'
@@ -109,8 +109,8 @@ public function render(array $dataChart = []): string
109109
. ' },'
110110
. ' title: {'
111111
. ' text: "' . $this->report->name . '",'
112-
. ' floating: ' . ($horizontal ? 'false' : 'true') . ','
113-
. ' offsetY: ' . ($horizontal ? 0 : ($chartHeight - 20)) . ','
112+
. ' floating: false,'
113+
. ' offsetY: 0,'
114114
. ' align: "' . ($horizontal ? 'left' : 'center') . '",'
115115
. ' style: {'
116116
. ' color: "#444"'

0 commit comments

Comments
 (0)