Charts & Flow
Hook Retention Curve
Hook Retention Curve control in the Sam Creates system.
canvasmedium complexitymoderate motionclickaccessible
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
1
When to use it
Creator-analytics mockups, video-hook explainers and any chart where a few preset scenarios swap a curve and a score.
When not to
Real retention analytics: the three curves and scores are fixed placeholders, not measured data.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Edit the three entries in the configs object (ret30, grade, decay, noise) and the matching button labels. The palette is navy --sc-navy, red --sc-red and cream --sc-cream. Keep the native .sc06-tab buttons with aria-pressed and the demo-v1 lifecycle. Set the disabled attribute on a .sc06-tab for the disabled look.
Safe to edit
- scenario presets (configs object: ret30, grade, decay, noise)
- tab labels and data-type keys
- palette tokens (--sc-navy, --sc-red, --sc-cream)
- curve shape and noise in render()
- canvas height (120px)
Keep intact
- First control stops scripted pressure cycle; control paints one manual state.
- demo-v1 preview lifecycle: initialize demoEnabled from window.__foreverPreview and stop attract work on the window forever:interactive event; retain manual feedback, settling, cleanup and explicit sessions
Known limitations
- State remains local to each mounted instance; format/theme remount preserves takeover, not component values.
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.