From 23a533fd16447c9f8e6e571214ef5a46222a6e8c Mon Sep 17 00:00:00 2001 From: Luc Mcgrady Date: Wed, 6 Aug 2025 20:30:01 +0100 Subject: [PATCH] Fix: Regular simualtor x axis --- ts/routes/graphs/simulator.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ts/routes/graphs/simulator.ts b/ts/routes/graphs/simulator.ts index 8a4cc0559..6de8aedeb 100644 --- a/ts/routes/graphs/simulator.ts +++ b/ts/routes/graphs/simulator.ts @@ -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( 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();