Request metrics again via state

This commit is contained in:
Joscha 2023-10-22 17:35:13 +02:00
parent f77ed130e1
commit c9ff8ab228
3 changed files with 106 additions and 31 deletions

View file

@ -1,3 +1,6 @@
import { Metrics } from "./graph/metrics.js";
import { State } from "./graph/state.js";
import uPlot from "./uPlot.js";
/*
@ -120,4 +123,10 @@ const COLORS = [
const plotDiv = document.getElementById("plot")!;
const metricsDiv = document.getElementById("metrics")!;
let plot: uPlot | null = null;
const metrics = new Metrics(metricsDiv);
const state = new State(metrics);
state.update();
// For debugging
(window as any).state = state;