Area chart preview
Compare nonnegative time series as stacked or overlaid areas with exact period inspection.
pro · Data · composite
When to use
- Use it when a page needs compare nonnegative time series as stacked or overlaid areas with exact period inspection.
- 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 area chart.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/area-chartImport components/ui/tidal.css, components/ui/area-chart.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/area-chart.css";
import{TidalAreaChart}from"./components/ui/area-chart";
export default()=><div className="tidal-scope"><TidalAreaChart data={[{id:"example",label:"Demo",values:{}}]} onSelectedChange={() => {}} selectedId={"example"} series={[{id:"example",label:"Demo"}]} title={"Demo"}/></div>;API and props
TidalAreaChart.data (required)ReadonlyArray<TidalAreaDatum>Required data value accepted by this exported component.
TidalAreaChart.onSelectedChange (required)(id: string, event: ChangeEvent<HTMLInputElement> | PointerEvent<HTMLDivElement>) => voidCallback invoked when the selected change interaction is proposed.
TidalAreaChart.selectedId (required)stringRequired selected id value accepted by this exported component.
TidalAreaChart.series (required)ReadonlyArray<TidalAreaSeries>Required series value accepted by this exported component.
TidalAreaChart.title (required)ReactNodeRequired title value accepted by this exported component.
TidalAreaChart.descriptionReactNodeOptional description value accepted by this exported component.
TidalAreaChart.disabledboolean | undefinedOptional disabled value accepted by this exported component.
TidalAreaChart.formatAxisValue((value: number) => string) | undefinedOptional format axis value value accepted by this exported component.
TidalAreaChart.formatValue((value: number) => string) | undefinedOptional format value value accepted by this exported component.
TidalAreaChart.headingLevel"h2" | "h3" | "h4" | "h5" | "h6" | undefinedOptional heading level value accepted by this exported component.
TidalAreaChart.labelsPartial<{ inspect: string; series: string; total: string; missing: string; table: string; period: string; invalid: string; empty: string; plot: string; }> | undefinedOptional labels value accepted by this exported component.
TidalAreaChart.mode"stacked" | "overlaid" | undefinedOptional mode value accepted by this exported component.
TidalAreaChart.plotPropsOmit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "aria-hidden" | "children" | "dangerouslySetInnerHTML"> | undefinedOptional plot props value accepted by this exported component.
TidalAreaChart.rangePropsNativeRange | undefinedOptional range props value accepted by this exported component.
TidalAreaChart.rangeRefRef<HTMLInputElement> | undefinedOptional range ref 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.