vibran

Live scrolling chart, real-time chart

Portuguese name: Gráfico em tempo real

A line and area that scroll left with every new reading, the axis scale adjusting smoothly and a tag pinned to the current value. Shows the current number, the peak and the average of the window. The Pause button freezes the chart so you can hover over points to read each value. Only runs while visible.

Preview of Live scrolling chart, real-time chart running live
Copy the promptAdjust colors and speed

When to use it

For numbers that change constantly and that someone watches: site visitors, support queue, orders per minute, server load. Without data-simular="nao" it makes up sample data; in production turn that off and feed it with the ponto event, coming from a WebSocket, SSE or a poll every few seconds.

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-tempo-real" data-titulo="Pessoas no site agora" data-rotulo="pessoas" data-janela="60" data-intervalo="1000"></div>

<!-- com dados reais: desligue a simulação e avise o valor a cada mudança -->
<div id="fila" data-efeito="painel-tempo-real" data-simular="nao" data-rotulo="na fila"></div>
<script>
  socket.onmessage = (m) => document.getElementById("fila")
    .dispatchEvent(new CustomEvent("ponto", { detail: { valor: JSON.parse(m.data).fila } }));
</script>

More dashboard effects

All 18 dashboard effects →