histogram width divide by mode, not total #2
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ export const Histogram = ({ gameStats }: Props) => {
|
||||||
<Progress
|
<Progress
|
||||||
key={i}
|
key={i}
|
||||||
index={i}
|
index={i}
|
||||||
size={95 * (value / totalGames)}
|
size={95 * (value / Math.max(...winDistribution)}
|
||||||
label={String(value)}
|
label={String(value)}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
|
Loading…
Add table
Reference in a new issue