diff --git a/app/Filament/Widgets/ProductionLineStopChart.php b/app/Filament/Widgets/ProductionLineStopChart.php index 5516bfe..88de35b 100644 --- a/app/Filament/Widgets/ProductionLineStopChart.php +++ b/app/Filament/Widgets/ProductionLineStopChart.php @@ -175,30 +175,6 @@ class ProductionLineStopChart extends ChartWidget 'display' => false, // Disable y-axis ], ], - 'elements' => [ - 'arc' => [ - 'hover' => [ - 'scale' => 1.1, // Increase the slice size by 10% on hover - 'borderWidth' => 3, // Optionally increase border width on hover - 'offset' => 10, // Make the slice move outside of the pie chart on hover - ], - // This ensures that animation and hover effects work as expected - 'animation' => [ - 'duration' => 500, // Duration for the hover animation (smooth pop) - 'easing' => 'easeOutQuad', // Smooth easing for pop-up effect - ], - ], - ], - 'hover' => [ - 'mode' => 'nearest', // Hover mode: nearest slice - 'intersect' => true, // Only trigger hover if intersecting a slice - 'animationDuration' => 500, // Duration of hover animation - ], - 'animation' => [ - 'duration' => 1000, // Overall animation duration - 'easing' => 'easeInOutQuart', // Easing function for smooth transition - ], - 'maintainAspectRatio' => false, ]; }