Recognized units? 'm' gets converted to 'min'

Hi,

Is there a list of recognized Units while setting the units of a field?
I have some consistency issues, for example:

valueField.config.unit = 'm' gets converted to ‘min’.
Autoscaling also does not seem to work for most cases.

Is there an enum list or somethings similar that would encode to the correct (recognised) unit?

I rubber ducked myself and found the list here:
https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts

So for meters it would be ‘lengthm’

1 Like