MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / readReportData

Function readReportData

app/rcc/templates/reports/session-report.js:100–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 "";

Callers 1

initChartsFunction · 0.85

Calls 2

errorMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected