Formats are defined using the column names in your SQL query.
A format tag can be appended to your column name to ensure the right format (see table below for accepted tags).
Format tags are appended with an underscore: for example, to append the percentage format to a column named
growth, it would be
Evidence will also format the column if the column’s name matches any of the accepted format tags exactly (e.g., if your column is named
date, Evidence will use the
Below are the currently accepted format tags and their respective formats. Most numbers are formatted with 2 decimal places. This functionality will be extended in future versions to allow for more customization of formats.
|Format Type||Format Tag||Format Name||Example|
|Date||date||Date||March 17, 2021|
|Date||week||Week||March 14, 2021|
|Date||month||Month||Mar 1, 2021|
|Date||qtr||Quarter||Jan 1, 2021|
When creating a table, Evidence formats column titles based on the name of the column and its format tag. Format tags that do not add to the meaning of the column name are not printed as part of the title.
|Column Name||Formatted Title|
In chart and table components, Evidence automatically formats large numbers into shortened versions based on the size of the maximum number in that column. Future versions will allow for more control over how and when units are used.
Below are the thresholds for automatic unit formats. Unit formats are applied when at least 75% of a chart axis is in those large units.
Units are combined with format tags. For example, if you had a chart with a maximum y-axis value of 10 million and your column name included the
_usd format tag, the value would be formatted as $10M