feat: add numbers to RaceChart
This commit is contained in:
parent
406ea9ffdd
commit
70a4ece5bc
@ -64,13 +64,13 @@ const RaceChart: FC<RaceChartProps> = ({ players, std }) => {
|
||||
paintOrder={"stroke fill"}
|
||||
fontFamily="monospace"
|
||||
>
|
||||
{player.name}
|
||||
{index + 1}. {player.name}
|
||||
</text>
|
||||
<text
|
||||
key={index}
|
||||
x={
|
||||
4 +
|
||||
Math.max(...players.map((p, _) => p.name.length)) *
|
||||
(4 + Math.max(...players.map((p, _) => p.name.length))) *
|
||||
(barHeight - 1.5 * gap) *
|
||||
0.66
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user