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