diff --git a/public/analytics.js b/public/analytics.js index 6813f3ca..ec815f4c 100644 --- a/public/analytics.js +++ b/public/analytics.js @@ -6,14 +6,6 @@ function esc(s) { return s ? String(s).replace(/&/g,'&').replace(//g,'>').replace(/"/g,'"') : ''; } // --- SVG helpers --- - function svgLine(points, color, w, h, pad, maxX, maxY) { - return points.map((v, i) => { - const x = pad + i * ((w - pad * 2) / Math.max(points.length - 1, 1)); - const y = h - pad - (v / Math.max(maxY, 1)) * (h - pad * 2); - return `${x},${y}`; - }).join(' '); - } - function sparkSvg(data, color, w = 120, h = 32) { if (!data.length) return ''; const max = Math.max(...data, 1); @@ -117,7 +109,7 @@ renderTab('overview'); } catch (e) { document.getElementById('analyticsContent').innerHTML = - `