Why transformations and levels of measurement matter for choosing the right visualization
Imagine you have raw workout data: a timestamp and the calories burned during each session. On its own, this data is just a long list of dates and numbers. But by applying a few transformations, we can reveal patterns that were invisible in the raw data.
These three transformations turn raw timestamps and numbers into two categorical variables with a summarized measure, which is exactly what a heatmap needs.
Imagine you are tracking hours spent by different teams (A, B, C) across project stages. If those stages have a natural order, a line chart makes sense because the lines trace a meaningful progression. But if the categories have no inherent order, the same line chart becomes misleading.
Imagine you survey customers using a 1–5 satisfaction scale. This data is ordinal: you know that 4 is better than 3, but you cannot say the difference between 1 and 2 is the same as between 4 and 5. How you treat this scale changes what visualizations make sense and what claims you can make.
Imagine you manage four regional sales teams. You have two metrics: each team's NPS (Net Promoter Score, ranging from −100 to +100) and their total sales revenue. Both are numbers, but they behave very differently when it comes to proportional visualizations.
Dates are special because their level of measurement changes depending on how you use them. A raw date (2025-02-15) is interval. A day of the week (Monday) is nominal. A month number (1 to 12) can be ordinal. A day count (days since start) becomes ratio. This flexibility is why visualization tools often let you choose whether to treat dates as continuous or discrete.