Changed data label position of the production line count chart

This commit is contained in:
dhanabalan
2025-06-27 14:44:23 +05:30
parent 82b56c6cc9
commit 72a1eca400

View File

@@ -14,7 +14,7 @@ class CumulativeChart extends ChartWidget
protected $listeners = ['cumulativeChart'];
protected static ?string $maxHeight = '350px';
protected static ?string $maxHeight = '400px';
protected int|string|array $columnSpan = 12;
@@ -226,9 +226,9 @@ class CumulativeChart extends ChartWidget
// ],
'plugins' => [
'datalabels' => [
'anchor' => 'start',
'align' => 'start',
'offset' => 4,
'anchor' => 'start', // Positions the label relative to the top of the bar
'align' => 'start', // Aligns the label above the bar
'offset' => -15, // Adjust if needed (positive moves up, negative moves down)
'color' => '#000',
'font' => [
'weight' => 'bold',