Skip to main content
Inspiration and code for these examples from this Codepen.

Basic thermometer

Setup

This query used for this example is pretty simple and needs only a single row that includes the following:
  • Value - the current value for the thermometer. In this example, it’s “Users Count”.
  • Target (“calc_1”) - The 100% value for the thermometer. In this example, it’s the “target” calculation.
  • % to goal (“calc_2”) - The calculation for the value’s progress to the goal - here it is Value / Target (=A1 / B1 is the actual calculation). This should be in decimal format, so 0.52 instead of 52%.

Example code

Thermometer with a celebration

Setup

The setup for the “celebrate with stars” version includes one additional field, Over 100%? (“calc_3”). This calculation is a simple calculation to see if the target has been exceeded. It will be used to assign a CSS class that exposes the stars: =IF(C1 >= 1, "yes", "no")

Example code