Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jonpolygon's avatar

Laravel Nova Trend Metrics in Minor Units

We store our values in minor units and so I am looking for a solution to convert the trend metrics to reflect this. Instead of showing $100k I would like to correctly display $1k, for example.

I've done this successfully with value metrics by using ValueResult and dividing the value, however I can't find a similar solution for trend metrics.

Also, in some cases, we store a negative value for payments made, but I'd also like this to display the trend metrics as a positive number. $(100k) would display as $100k.

Any suggestions would be greatly appreciated.

0 likes
0 replies

Please or to participate in this conversation.