Stat panel: field as text instead of number

Hi,

I want to display a label/field from a Prometheus metric. So I am using the Stat visualization.

The label/field contains 2021.01 but is treated as number and only 2021 is displayed.

How can I displayed the value as text without being rounded ?

Also, is it possible to use the Legend to do text formatting ?

Thanks.