histogram width divide by mode, not total #2

Merged
christofsteel merged 47 commits from honigle into main 2022-02-02 13:59:36 +01:00
Showing only changes of commit b5bfad1104 - Show all commits

View file

@ -14,7 +14,7 @@ export const Histogram = ({ gameStats }: Props) => {
<Progress
key={i}
index={i}
size={95 * (value / Math.max(...winDistribution)}
size={95 * (value / Math.max(...winDistribution))}
label={String(value)}
/>
))}