Add Comments

This commit is contained in:
马一丁
2025-11-27 09:51:42 +08:00
parent 23356631f4
commit 4e882560da
8 changed files with 192 additions and 16 deletions
+1
View File
@@ -797,6 +797,7 @@ class ChartToSVGConverter:
colors = self._get_colors(datasets)
def _safe_radius(raw) -> float:
"""将输入半径安全转为浮点并设置最小阈值,避免气泡完全消失"""
try:
val = float(raw)
return max(val, 0.5)