∞ forever components

Charts & Flow

Cohort Triangle

A six-cohort retention triangle whose cells lift and shade by percent, with shadows cast from a light over the selected cell; diagonal colour waves re-roll the data while a gliding ring and counting readout follow hover, drag, focus or arrows.

csslight complexitymoderate motionpointer+keyboardaccessible

Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited

Live demo — the real component, running in a sandbox. One self-contained HTML file, zero dependencies. Open it on the canvas →
1

When to use it

Working with an AI agent

Every component ships agent-ready metadata. An example instruction for this one:

Keep the seeded data generator, the diagonal wave delay and the roving cell focus. Safe to change cohort names, the decay curve and tokens.

Safe to edit

  • tokens
  • labels

Keep intact

  • demo-v1 idle demo and takeover
  • theme hook
  • reduced-motion and visibilitychange guards
  • nx41- prefix

cohortretentiontriangleheatmapanalyticstable

More Charts & Flow components

  • Sankey FlowThree-stage Sankey diagram on dark canvas: bezier ribbons grow stage-by-stage from origins to hubs to outcomes, pulsing softly in opacity to show flow volume.
  • Chord DiagramEight ring nodes with curved ribbons that swell and shrink as weights rebalance every ~3s. Additive blending creates glowing color overlaps.
  • Treemap7 rounded cells partition the canvas via slice-dice treemap; cells lerp to new sizes every 2.6 s as synthetic values drift, with a subtle alpha pulse.
  • CandlesticksGreen and red OHLC candles stream in from the right with smooth slide animation; newest candle grows from pivot. Dashed last-price marker traces horizontally.
  • StreamgraphSix translucent stacked bands breathe around a central baseline via layered sines; a sweeping readout line tracks across with colored tick dots per band.
  • Bubble Pack64 mint/teal/amber/coral circles settle under gravity with collision physics; size encodes value. Large bubbles pull toward center with a breathing pulse.