1
0
mirror of https://github.com/s00500/ESPUI.git synced 2025-07-04 06:10:18 +00:00

small fixes to graph UI element to make X-axis labels legible and meaningful

This commit is contained in:
leokeba
2022-11-21 16:05:29 +01:00
parent b1b9fd2c79
commit 35c2f5b6b1
6 changed files with 39 additions and 39 deletions

2
data/js/controls.js vendored
View File

@ -507,7 +507,7 @@ function start() {
}
break;
case ADD_GRAPH_POINT:
var ts = Math.round(new Date().getTime() / 1000);
var ts = new Date().getTime();
graphData[data.id].push({ x: ts, y: data.value });
saveGraphData();
renderGraphSvg(graphData[data.id], "graph" + data.id);