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.

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
- 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.
- Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
- 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
- Progress ringsactivity rings
- KPI cards with sparklinestat cards
- Stacked columns, toggle series from legendColunas empilhadas com legenda ligável
- Live activity feedFeed de atividade ao vivo
- Animated sales funnelconversion funnel
- Line chart with tooltiparea chart
- Live scrolling chart, real-time chartGráfico em tempo real
- Responsive dashboard layoutadmin shell