1. Home
  2. Working with layers
  3. How to format tooltip attributes

How to format tooltip attributes

Numbers that appear in a tooltip can be formatted so they are clearer to the reader. This is done by defining a special syntax after an inserted attribute:

{{feature}.{value}:<format>}

Where <format> is replaced by the desired “format option”. Note, the < and > characters are not needed.

The available format options are detailed in How to format values

Some examples:

SummaryTooltip templateResult
Unformatted{{feature}.{value}}
Using built-in format{{feature}.{value}:format}
Using custom format
(3s.f., using SI suffixes)
{{feature}.{value}:.3s}

How to use local currency formatting 

Cadence currency format option, currency, always uses the £ prefix 

To write a currency of your choice, we recommend using the applicable D3 format option and writing the symbol next to the attribute, outside of the brackets. 

For example:

SummaryTooltip templateResult
Formatting Euros{{feature}.{value}:,.2f}€
Formatting Dollars${{feature}.{value}:,.2f}
Updated on 1st May 2025

Was this article helpful?

Need Support?
Can't find the answer you're looking for?
Contact support