Line chart preview
A controlled responsive line chart with exact pointer and native-button inspection plus an HTML data table fallback.
pro · Data · composite
When to use
- Use it when a page needs a controlled responsive line chart with exact pointer and native-button inspection plus an html data table fallback.
- Choose it when the data structure, labels, and state are supplied by the application and must remain consumer controlled.
Alternatives
- Choose analytics-card instead when explore revenue, compare periods and inspect chart values is the actual interface need, rather than line chart.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/line-chartImport components/ui/tidal.css, components/ui/line-chart.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/line-chart.css";
import{TidalLineChart}from"./components/ui/line-chart";
export default()=><div className="tidal-scope"><TidalLineChart points={[{id:"example",label:"Demo",value:1,displayValue:"value"}]} title={"Demo"}/></div>;API and props
TidalLineChart.points (required)ReadonlyArray<TidalLineChartPoint>Required points value accepted by this exported component.
TidalLineChart.title (required)ReactNodeRequired title value accepted by this exported component.
TidalLineChart.chartLabelstring | undefinedOptional chart label value accepted by this exported component.
TidalLineChart.descriptionReactNodeOptional description value accepted by this exported component.
TidalLineChart.emptyMessageReactNodeOptional empty message value accepted by this exported component.
TidalLineChart.eyebrowReactNodeOptional eyebrow value accepted by this exported component.
TidalLineChart.footerReactNodeOptional footer value accepted by this exported component.
TidalLineChart.formatAxisValue((value: number) => string) | undefinedOptional format axis value value accepted by this exported component.
TidalLineChart.headingLevel"h2" | "h3" | "h4" | undefinedOptional heading level value accepted by this exported component.
TidalLineChart.motionKeystring | number | undefinedOptional motion key value accepted by this exported component.
TidalLineChart.nextButtonPropsOmit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> | undefinedOptional next button props value accepted by this exported component.
TidalLineChart.nextButtonRefRef<HTMLButtonElement> | undefinedOptional next button ref value accepted by this exported component.
TidalLineChart.nextLabelstring | undefinedOptional next label value accepted by this exported component.
TidalLineChart.onSelectedChange((point: TidalLineChartPoint, source: "pointer" | "previous" | "next") => void) | undefinedCallback invoked when the selected change interaction is proposed.
TidalLineChart.previousButtonPropsOmit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> | undefinedOptional previous button props value accepted by this exported component.
TidalLineChart.previousButtonRefRef<HTMLButtonElement> | undefinedOptional previous button ref value accepted by this exported component.
TidalLineChart.previousLabelstring | undefinedOptional previous label value accepted by this exported component.
TidalLineChart.selectedIdstring | undefinedOptional selected id value accepted by this exported component.
TidalLineChart.tableLabelReactNodeOptional table label value accepted by this exported component.
TidalLineChart.xAxisLabelstring | undefinedOptional x axis label value accepted by this exported component.
TidalLineChart.yAxisLabelstring | undefinedOptional y axis label value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.