Mar 25, 2020
0
Level 1
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.
Please or to participate in this conversation.