Hello there!
I’m trying to use the UnitPicker in @grafana/ui in my plugin but this component’s value is just a string.
Is there an exported function to format data by giving the chosen unit ? Or do I have to develop a formatter by myself ?
Because in panels like gauges or graph, choosing a unit will format the value displayed. For example, if you set the unit to Watt, if the value displayed is 1700, it will format it to “1.7 KW”
Thanks!