We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a61a5dd commit 3494766Copy full SHA for 3494766
1 file changed
src/components/Analysis/MoveMap.tsx
@@ -330,7 +330,10 @@ export const MoveMap: React.FC<Props> = ({
330
tickMargin={0}
331
tickLine={false}
332
tickFormatter={(value) => `${value}%`}
333
- domain={([dataMin, dataMax]) => [0, dataMax > 40 ? 100 : 40]}
+ domain={([, dataMax]) => {
334
+ const cappedMax = dataMax > 60 ? 100 : dataMax > 40 ? 60 : 40
335
+ return [0, cappedMax]
336
+ }}
337
>
338
<Label
339
value="← Unlikely"
0 commit comments