const FleetEfficiency = () => { const progress = 75; // Example progress value (0-100) // Calculate the rotation angle for the progress bar const rotationAngle = -90 + progress * 3.6; // Progress starts from the left (-90°) const handleDragStart = (event: React.DragEvent) => { const rect = event.currentTarget.getBoundingClientRect(); // Get position const cardData = JSON.stringify({ className: event.currentTarget.className, position: [rect.top, rect.left], // Store position value: rotationAngle, // Example value (you can change if dynamic) per: progress, }); event.dataTransfer.setData("text/plain", cardData); }; return (

Fleet Efficiency

{/* Apply dynamic rotation to the bar */}
0%
{progress}%
Optimal
100%
); }; export default FleetEfficiency;