From 48b79cc9533d4bf7c74b425cd49d2a7447cd1111 Mon Sep 17 00:00:00 2001 From: SonjaTuro Date: Sat, 16 Mar 2024 16:32:41 +1100 Subject: [PATCH] Tweak chart layout --- resources/views/feeder-widget.blade.php | 2 +- src/FeederWidget.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/resources/views/feeder-widget.blade.php b/resources/views/feeder-widget.blade.php index 06dc415..fdd75d8 100644 --- a/resources/views/feeder-widget.blade.php +++ b/resources/views/feeder-widget.blade.php @@ -34,7 +34,7 @@ class="grid flex-1 text-base font-semibold leading-6 text-gray-950 dark:text-whi

-
+
diff --git a/src/FeederWidget.php b/src/FeederWidget.php index 4f22c64..f7bd6f3 100644 --- a/src/FeederWidget.php +++ b/src/FeederWidget.php @@ -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()