adjusted positon of the label in hourly production chart
This commit is contained in:
@@ -170,7 +170,9 @@ class ItemOverview extends ChartWidget
|
|||||||
return [
|
return [
|
||||||
'plugins' => [
|
'plugins' => [
|
||||||
'datalabels' => [
|
'datalabels' => [
|
||||||
'anchor' => 'start',
|
'anchor' => 'end', // Change to 'end' to align to the right edge of the bar
|
||||||
|
'align' => 'right', // Align text to the right (optional, for label text alignment)
|
||||||
|
'offset' => 3, // Move label to the right by ~11px (≈3mm)
|
||||||
'color' => '#000',
|
'color' => '#000',
|
||||||
'font' => [
|
'font' => [
|
||||||
'weight' => 'bold',
|
'weight' => 'bold',
|
||||||
|
|||||||
Reference in New Issue
Block a user