Bring Drag & Drop to Dash with Dashboard Engine. 💫 Learn how at our next webinar!

FormatTemplate.money with other currencies

Hi,

this should be relatively simple but I’m just not getting it. I want to use the FormatTemplate to format a dashtable. However, I want to use £ or € instead. How should I go about doing this?

formatting = FormatTemplate.money(0)
currency = df.index.get_level_values("currency_code").unique()[0]

# This does not work and puts dash into an infinite loop
formatting._specifier["symbol"] = currency_map[currency]

hi @hiqbal2

Check out this example: Dash table formatting decimal place