Integer to string in tooltip

Hi out there,

in a certain graph, I have a numeric value representing a state for a device (e.g. 0 for “standby”, 1 for “starting”, 10 for “operational” etc.).
Is ther eany way to map these integer value to a given string in the tooltip? So when I hover with the mouse over a datapoint, I get the string value (additional to or instead of the integer value)? The mapping is constant and never changes, so I could put it into the query, if needed, I just don’t know how…

Thanks in advance
Best regards
DBa