Visualization using one field as term but label with another field

Hello. Like in here I want to use a different display label for the X-axis.

How can I do that?

Maybe create a custom/scripted filed?