Visualization Editor composites format string as input. The formatting operation yields a result string that consists of the original fixed text intermixed with the string format representation. This makes the values in visualization easy to read and more understandable.
Examples
Numeric Format Strings:
Applying some custom numeric format strings to specific data types and values. In this example we will change the Text Format of Temperatur:
{0:p} or {0:P} represents percentage e.g. 1,500.00%
{0:00.0}°C will Round the number to 1 number after comma e.g. 22.2 °C
DateTime Format Strings:
Represents a custom DateTime format string.
{0:d} represents Short Date Pattern e.g. 12/10/2020
{0:d} represents Short Date Pattern e.g. 12/10/2020
{0:dddd} represents full name of the day of the week e.g. Wednesday
{0:yyyy} represents Represents the year as a four-digit number. e.g. 2018
For more formats
- String formatting cheat sheet http://www.cheat-sheets.org/saved-copy/msnet-formatting-strings.pdf