mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-10-31 03:01:58 +01:00
fix date on neighour repor
This commit is contained in:
1 parent
acfd71bd2e
commit
ef52e96d7c
1 file changed
+9
-1
@@ -1189,7 +1189,15 @@ async function loadNeighborTimeSeries() {
|
||||
grid: { bottom: 60 },
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: { type: "line" }
|
||||
axisPointer: { type: "line" },
|
||||
formatter: params => {
|
||||
if (!params.length) return "";
|
||||
const timestamp = Number(params[0].axisValue);
|
||||
const heading = new Date(timestamp / 1000).toLocaleString();
|
||||
return escapeHtml(heading) + "<br>" + params.map(point =>
|
||||
`${point.marker}${escapeHtml(point.seriesName)}: ${escapeHtml(point.value ?? "N/A")}`
|
||||
).join("<br>");
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
type: "scroll",
|
||||
|
||||
Reference in new issue
Block a user