diff --git a/Energy_Pie/module.html b/Energy_Pie/module.html index 56eb053..dc7f4bd 100644 --- a/Energy_Pie/module.html +++ b/Energy_Pie/module.html @@ -215,8 +215,9 @@ function donutCard({ title, percent, subtitle, color }) { const share = clamp01(percent / 100); const r = 56; const c = 2 * Math.PI * r; - const dash = share * c; // farbiger Anteil - const rest = c - dash; // Rest (dunkel) + let dash = share * c; + // Schutz gegen Rundungs-Artefakte bei 99.9..100% + if (dash > c - 0.01) dash = c; return `