| Sorted by sizing value | Sorted by a different value |
![]() | ![]() |
Example code
Fonts are clamped between--min-font-size and --max-font-size. If you use container query units (cqw) for the max font size, the type will adjust to the width of the dashboard tile. Note that the max font size is a bit of a âmagic numberâ meaning youâll have to adjust it based on the length of the words in your data set, the number of words in the results, and the desired size of the tile. The values in the example below were selected for this particular data set.
Example query showing calculation for percentage sizing and an example calculation for determining text color:


