Skip to content

Commit 3494766

Browse files
feat: change caps of movemap y-axis
1 parent a61a5dd commit 3494766

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/components/Analysis/MoveMap.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,10 @@ export const MoveMap: React.FC<Props> = ({
330330
tickMargin={0}
331331
tickLine={false}
332332
tickFormatter={(value) => `${value}%`}
333-
domain={([dataMin, dataMax]) => [0, dataMax > 40 ? 100 : 40]}
333+
domain={([, dataMax]) => {
334+
const cappedMax = dataMax > 60 ? 100 : dataMax > 40 ? 60 : 40
335+
return [0, cappedMax]
336+
}}
334337
>
335338
<Label
336339
value="← Unlikely"

0 commit comments

Comments
 (0)