Skip to content
IndexRequest a UIAboutContact

Waterfall Change Chart

A waterfall chart that bridges a start value to an end value through increases and decreases, with hover details.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI CODING TOOL
Clean waterfall chart of annual profit, a dark blue start bar Last year 120, then a green floating bar Sales plus 45, a red floating bar Costs minus 30, a green bar Pricing plus 25, a red bar Tax minus 15, and a dark blue end bar This year 145, thin grey connector lines between bars, signed value labels above each bar, faint horizontal grid lines, flat vector style, clear and calm. Negative: 3D, gradients, rainbow colours, text errors, clutter. Reduced motion: static chart.

About this pattern

Definition

A waterfall chart explains how you got from one total to another. Floating bars show each increase or decrease stacked on the running total, so you can see which items added and which took away. It is the standard chart for profit bridges, budgets and variance explanations.

Purpose & UX principles

  • Start and end bars sit on the baseline; change bars float between running totals.
  • Colour increases and decreases differently and also mark them with a plus or minus sign.
  • Connect bars with thin lines so the running total is easy to follow.
  • Label the bars and show the value above or below each.

Interaction states

  • Two datasets; hover, focus or tap a bar for its detail.

Motion specification

  • Bars grow upward in sequence over 600ms on change.
  • Reduced motion: bars appear at once.

Responsive behaviour

  • Do not use colour alone: include signs and text labels.
  • Provide the numbers in a table for people who need exact values.

Code

HTML
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Data"><button data-p="0" aria-pressed="true">Profit</button><button data-p="1" aria-pressed="false">Users</button></div><svg class="wf" id="wf" viewBox="0 0 330 150" role="group" aria-label="Waterfall chart"></svg><p class="out" id="out" role="status"></p></div>

Related patterns

Stacked Bars with Series Toggle

↗
Stacked Bars with Series ToggleData Visualization

Funnel Chart

↗
Funnel ChartData Visualization

Interactive Bar Chart

↗
Interactive Bar ChartData Visualization