Skip to content

Commit

Permalink
Tweak chart layout
Browse files Browse the repository at this point in the history
  • Loading branch information
SonjaTuro committed Mar 16, 2024
1 parent 61150ea commit 48b79cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/feeder-widget.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class="grid flex-1 text-base font-semibold leading-6 text-gray-950 dark:text-whi
</p>
</div>
<div class="flex-1 flex justify-center">
<div style="position: relative; width:100px;">
<div style="position: relative; height:70px;">
<canvas
x-ref="canvas"
></canvas>
Expand Down
8 changes: 8 additions & 0 deletions src/FeederWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ class FeederWidget extends Widget
protected static ?array $options = [
'rotation' => 270, // start angle in degrees
'circumference' => 180, // sweep angle in degrees
'plugins' => [
'legend'=> [
'display' => false
],
'tooltip' => [
'enabled' => false
]
],
];

public function __construct()
Expand Down

0 comments on commit 48b79cc

Please sign in to comment.