Changed data label position of the production line count chart
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user