Fix: Regular simualtor x axis

This commit is contained in:
Luc Mcgrady 2025-08-06 20:30:01 +01:00
parent 7567e67c3b
commit 23a533fd16
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C

View file

@ -100,11 +100,11 @@ export function renderWorkloadChart(
bounds,
subgraph_data,
x,
yTickFormat,
xTickFormat,
formatY,
formatX,
(_e: MouseEvent, _d: number) => undefined,
yTickFormat,
xTickFormat,
);
}
@ -177,11 +177,11 @@ export function renderSimulationChart(
bounds,
subgraph_data,
x,
yTickFormat,
(a) => a.toString(),
formatY,
formatX,
legendMouseMove,
yTickFormat,
undefined,
);
}
@ -190,11 +190,11 @@ function _renderSimulationChart<T extends { x: any; y: any; label: number }>(
bounds: GraphBounds,
subgraph_data: T[],
x: any,
yTickFormat: (n: number) => string,
xTickFormat: (n: number) => string,
formatY: (n: T["y"]) => string,
formatX: (n: T["x"]) => string,
legendMouseMove: (e: MouseEvent, d: number) => void,
yTickFormat?: (n: number) => string,
xTickFormat?: (n: number) => string,
): TableDatum[] {
const svg = select(svgElem);
svg.selectAll(".lines").remove();