Request metrics again via state
This commit is contained in:
parent
f77ed130e1
commit
c9ff8ab228
3 changed files with 106 additions and 31 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue