How to use FieldConfig units setting in my datasource

Does anyone have an idea how to use the FieldConfig units property? I have a datasource which pulls from a backend service. I want to set the default units setting in the dataframe. Does anyone have some sample code on how to make that happen?

Any assistance would be greatly appreciated.

1 Like

This doesnt seem to be addressed anywhere.. Which is quite annoying.

The best i was able to find was this:

but it gives you very few examples, i.e: currency:EUR basically works, and percent - but only if the percentage is in [0-100] - not how to use the [0-1] variant