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:
2
data/js/controls.js
vendored
2
data/js/controls.js
vendored
@ -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);
|
||||
|
Reference in New Issue
Block a user