()
| 98 | // ----------------------------------------------------------------------- |
| 99 | |
| 100 | function readReportData() { |
| 101 | const el = document.getElementById("report-data"); |
| 102 | if (!el) return null; |
| 103 | try { |
| 104 | return JSON.parse(el.textContent); |
| 105 | } catch (e) { |
| 106 | console.error("Report data parse failed:", e); |
| 107 | return null; |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | function formatAxisValue(value) { |
| 112 | if (!Number.isFinite(value)) return ""; |
no test coverage detected