ns-ui

Chart Ridgeline Terrain

Unknown-Pleasures ridgeline chart whose live history recedes into scrolling ambient noise terrain, dented gravitationally by the cursor.

Use when an Unknown-Pleasures ridgeline chart where live history recedes into scrolling noise terrain, dented by the cursor; use for a live/ambient data feed with a generative-landscape feel, not when trend direction is the point; pick chart-area-aurora instead when trend direction is the story and a real tooltip and axis are needed, hero-chart-recorder when the live stream is the product at hero scale, or histogram-live-grain when the question is the distribution of a sample rather than its shape over time.

Install

npx shadcn add https://design.helpmarq.com/r/chart-ridgeline-terrain.json
  • canvas
  • data-viz
  • ridgeline
  • noise
  • cursor
  • ambient
  • chart

ns-ui / chart-ridgeline-terrain

THROUGHPUT — LIVE
14 rps

move the cursor over the terrain, release for the rebound

Props

PropTypeDefaultDescription
series?number[]EMPTYdata samples, oldest → newest; newest enters at the front row
cols?number96vertices per ridgeline
rows?number40ridgeline count (back to front)
ambientAmplitude?number18ambient noise height in px at the front row
dataAmplitude?number68data peak height in px at the front row
glideMs?number600ms for the history to glide one row back after a push
dentSigma?number90gaussian radius of the cursor dent in screen px
dentDepth?number26max cursor dent depth in px
className?string"h-96"
aria-label?string"Live signal terrain"