// SVG Donut Chart export function renderSVGDonut(rate: number): string { const size = 120; const strokeW = 12; const r = (size - strokeW) / 2; const c = Math.PI * 2 * r; const pct = Math.max(0, Math.min(100, rate)); const offset = c - (pct / 100) * c; let svg = ``; svg += '' + ''; svg += ``; svg += ``; svg += `${pct.toFixed(1)}%`; svg += ""; return svg; }