Back to Blog

Part of our chart selection series. Start with How to Choose the Right Chart for Your Data if you want the full decision framework.

Once you know when to reach for a bar, line, or donut, the next step is learning the charts that answer harder questions: Where is intensity concentrated? How do nested categories share a total? Do two metrics move together?

Heatmaps, treemaps, and scatter plots are often treated as “advanced” — which usually means people either avoid them or use them as decoration. This guide treats them as tools with clear jobs. Match the job, and they become the most readable option on the page.

Visual guide: heatmap for density, treemap for hierarchy, scatter for relationships
Three intents, three forms: density → heatmap, hierarchy → treemap, relationship → scatter.

One Quick Filter Before You Choose

Finish this sentence: “I need my audience to see ___.”

Rule of thumb: If the answer is “which category is biggest?” or “what happened over time?”, stay with bars or lines. These three charts earn their place only when pattern, structure, or correlation matters more than a simple ranking.

Heatmap — See Intensity Across Two Axes

A heatmap encodes a third value as color on a grid. Rows and columns are categories (or ordered bins); cell color shows magnitude. The eye scans for hotspots, cold spots, and gradients — not for exact decimals.

Use a heatmap when

Avoid a heatmap when

Design tips: Prefer a sequential color scale for magnitude (light → dark). Use diverging scales only when zero or a midpoint is meaningful. Sort rows and columns by a meaningful order (time, size, alphabetical) so patterns are not accidental. Cap category counts — a 40×40 grid is rarely readable on a laptop.

Treemap — Show Hierarchical Composition

A treemap divides a rectangle into nested blocks sized by value. Parent regions represent higher-level categories; child blocks show the breakdown. It answers: How is this total composed, and which nested pieces dominate?

Use a treemap when

Avoid a treemap when

Design tips: Limit nesting depth (two levels is often enough). Label large blocks; let hover or a side panel handle the long tail. Color by parent category for structure, or by a second metric for enrichment — not both at once. Never use a treemap for time series.

Scatter Plot — Reveal Relationships

Scatter plots place two continuous variables on the X and Y axes. Each point is an observation. Clusters, slopes, and outliers emerge without forcing a single summary statistic. Add size or color only when a third variable clarifies the story.

Use a scatter when

Avoid a scatter when

Design tips: Start axes thoughtfully — zero is not always required for continuous metrics, but truncated ranges need a clear reason. Label notable outliers. If you add a trend line, say whether it is linear or local, and never treat correlation as causation in the caption.

Side-by-Side Decision Table

Question Choose Skip if…
Where is intensity concentrated across two dimensions? Heatmap Exact numbers matter more than pattern
How do nested categories share a total? Treemap Values are nearly equal or hierarchy is flat
Do two metrics move together? Where are outliers? Scatter An axis is categorical or points are too few
Which category ranks highest? Bar / column —
How did a metric change over time? Line —

Common Mix-Ups (And Better Swaps)

  1. Scatter used as a timeline. If X is date and you care about the path of one series, use a line. Scatter is for many independent observations.
  2. Treemap used as a leaderboard. Ranking belongs on a sorted bar chart. Treemaps communicate composition, not precise order.
  3. Heatmap used as a calendar decoration. A contribution calendar only works when the audience already understands the scale. For executive dashboards, start with a simple weekly bar.
  4. Bubble scatter with too many encodings. Size + color + shape + labels turns a relationship chart into noise. Pick one extra channel.

Put Them to Work on Real Data

The fastest way to internalize these rules is to try two forms on the same question. Import a matrix and toggle between heatmap and grouped bars. Load a nested budget and compare treemap vs. stacked bars. Plot two KPIs as scatter and as dual-axis lines — then keep the one a colleague understands in under five seconds.

Tools with a broad chart library — such as VantaViz — make that experiment cheap: swap chart types without rebuilding the analysis, and keep sensitive files local while you do it.

Bars and lines will still do most of the work. Heatmaps, treemaps, and scatters are how you answer the questions those charts cannot.

Try heatmap, treemap, and scatter on your data

Import CSV, Excel, or JSON in VantaViz and explore 30+ chart types — processed locally on your device.

Get Started Free