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