forked from Minecraft/Stonks
parent
7c359aa390
commit
959ac79fbd
|
@ -33,10 +33,10 @@ const StackedBarSegment = ({ aggregate, total }) => {
|
|||
hasArrow
|
||||
label={`${aggregate.value
|
||||
.toString()
|
||||
.replace(
|
||||
/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g,
|
||||
","
|
||||
)} ${prettifyStatisticName(aggregate.type, aggregate.name)}`}
|
||||
.replace(/\B(?=(\d{3})+(?!\d))/g, ",")} ${prettifyStatisticName(
|
||||
aggregate.type,
|
||||
aggregate.name
|
||||
)}`}
|
||||
>
|
||||
<Box
|
||||
width={aggregate.value / total}
|
||||
|
|
Loading…
Reference in New Issue