Removed unwanted plugin data js code

This commit is contained in:
dhanabalan
2025-05-12 20:07:27 +05:30
parent 21ce9c76e8
commit 8368099b93

View File

@@ -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,
];
}