vibran

KPI cards with sparkline

Also called: stat cards

Dashboard stat cards where the number counts up and the sparkline draws itself left to right. Hovering the chart shows the value for each day.

Preview of KPI cards with sparkline running live
Copy the promptAdjust colors and speed

When to use it

Top of any dashboard: sales, bookings, subscriptions, tickets. Feed your real numbers through data-dados; each item takes a prefix, suffix, decimals and a change value. Set sobe=false on metrics where a drop is good (cancellations, response time) so the change color stays correct.

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-kpi" data-dados='[{"rotulo":"Faturamento","valor":48920,"prefixo":"R$ ","variacao":12.4,"serie":[31,34,33,38,36,41,44,47,52]}]'></div>

More dashboard effects

All 18 dashboard effects →