Component libraryLine chart
Line chart
ProA controlled responsive line chart with exact pointer and native-button inspection plus an HTML data table fallback.
npx shadcn@latest add @tidal-pro/line-chartInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/line-chart.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
title and consumer-owned points are required. Each point has a stable id, full string label, finite numeric value, exact displayValue and optional ReactNode description. Nonfinite runtime values are excluded from geometry and exposed as Unavailable in the HTML table. Optional controlled selectedId and onSelectedChange provide exact pointer/touch/previous/next inspection without owning application state. Optional headingLevel, eyebrow, description, chart/axis labels, formatAxisValue, previous/next labels, native button props/refs, tableLabel, emptyMessage, footer, motionKey and native figure attributes/ref are consumer-owned. Native button handlers run before higher inspection and preventDefault suppresses it. The chart performs no request, analytics, storage, aggregation, live-data or formatting side effect.
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.