vibran

Waterfall chart, from revenue to profit

Portuguese name: Gráfico de cascata

Shows how a starting value becomes an ending value through gains and losses: each bar floats where the previous one stopped, joined by a dashed line. Bars drop in sequence when the card appears. A switch changes labels between value and percentage of the total, and a button replays the animation.

Preview of Waterfall chart, from revenue to profit running live
Copy the promptAdjust colors and speed

When to use it

To explain the difference between two totals: from revenue to profit, from opening balance to month-end balance, from budget to actual spend. Each step shows how much it weighed, and the percentage switch helps people who think in proportions. Use 4 to 9 steps; with more, group the smallest into Other.

How to add it to your site

  1. Copy the prompt in the gallery. It comes with the effect's name and the full code. The prompt text is written in Portuguese, and AI builders handle that fine.
  2. Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
  3. Done: the AI adds the effect to your project, just like you saw it here.

Use it in HTML

The effect is plain JavaScript, no library. Just put the data-efeito attribute on the element:

<div data-efeito="painel-cascata" data-titulo="Da receita ao lucro" data-prefixo="€ " data-sufixo=" mil"
  data-dados='[
    {"rotulo":"Receita","valor":184,"total":true},
    {"rotulo":"Insumos","valor":-62},
    {"rotulo":"Pessoal","valor":-58},
    {"rotulo":"Lucro","total":true}
  ]'></div>

More dashboard effects

All 18 dashboard effects →