mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
Fix: Regular simualtor x axis
This commit is contained in:
parent
7567e67c3b
commit
23a533fd16
1 changed files with 6 additions and 6 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue