Component libraryScatter plot

Scatter plot

Pro

Compare independent numeric measures with exact point inspection, directional keyboard movement, and a complete data table.

npx shadcn@latest add @tidal-pro/scatter-plot
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/scatter-plot

Import components/ui/tidal.css, components/ui/scatter-plot.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

Consumer-owned data contains unique nonblank IDs, labels and finite x/y values; up to500 points. selectedId is null or an existing ID. Select the plot to propose its nearest point; native keyboard activation proposes the current or first point. Arrow keys propose the closest point in that numeric direction, Home/End the first/last supplied points. The exact data disclosure supplies individually labelled native buttons for every record, including duplicate coordinates. The consumer owns accepted selection. Axes stay numeric left-to-right independent of document text direction. Extreme domains are scaled before subtraction and flat domains are centered. Exact values default to String without rounding. Custom formatters, translated labels, native root/plot props and refs, disabled state and h2-h6 heading are supported. Caller plot click/keydown handlers run first and can prevent proposals. No regression line, trend inference, aggregation, fetching or persistence occurs. Modified/composition navigation keys are not intercepted. Body-only focus recovery preserves an unrelated consumer-chosen focus destination. The exact-data region enters the tab order only when its content actually overflows.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.