Skip to content

Commit 545e82c

Browse files
committed
fix report
1 parent a46ef52 commit 545e82c

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

ci/praktika/json.html

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -712,28 +712,6 @@
712712
});
713713
}
714714

715-
// Hover from chart to legend
716-
canvas.addEventListener("mousemove", (event) => {
717-
const rect = canvas.getBoundingClientRect();
718-
const x = event.clientX - rect.left - centerX;
719-
const y = event.clientY - rect.top - centerY;
720-
const distance = Math.sqrt(x * x + y * y);
721-
if (distance > radius) {
722-
drawChart(null);
723-
return;
724-
}
725-
726-
const angle = Math.atan2(y, x);
727-
const normalizedAngle = angle >= 0 ? angle : angle + 2 * Math.PI;
728-
729-
const hoveredSlice = sliceData.find(slice =>
730-
normalizedAngle >= slice.startAngle && normalizedAngle <= slice.endAngle
731-
);
732-
drawChart(hoveredSlice?.label || null);
733-
});
734-
735-
canvas.addEventListener("mouseleave", () => drawChart(null));
736-
737715
drawChart(null); // Initial draw
738716

739717
// Color utility

0 commit comments

Comments
 (0)