Bar chart preview
Compare grouped or stacked values with exact readings, negative values and a data table.
pro · Data · composite
When to use
- Use it when a page needs compare grouped or stacked values with exact readings, negative values and a data table.
- 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 bar chart.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/bar-chartImport components/ui/tidal.css, components/ui/bar-chart.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/bar-chart.css";
import{TidalBarChart}from"./components/ui/bar-chart";
export default()=><div className="tidal-scope"><TidalBarChart data={[{id:"example",label:"Demo",values:{}}]} series={[{id:"example",label:"Demo"}]} title={"Demo"}/></div>;API and props
TidalBarChart.data (required)ReadonlyArray<TidalBarDatum>Required data value accepted by this exported component.
TidalBarChart.series (required)ReadonlyArray<TidalBarSeries>Required series value accepted by this exported component.
TidalBarChart.title (required)ReactNodeRequired title value accepted by this exported component.
TidalBarChart.descriptionReactNodeOptional description value accepted by this exported component.
TidalBarChart.emptyMessageReactNodeOptional empty message value accepted by this exported component.
TidalBarChart.formatValue((value: number) => string) | undefinedOptional format value value accepted by this exported component.
TidalBarChart.headingLevel"h2" | "h3" | "h4" | "h5" | "h6" | undefinedOptional heading level value accepted by this exported component.
TidalBarChart.mode"grouped" | "stacked" | undefinedOptional mode value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- Supply truthful data and labels; the component does not fetch, aggregate, or persist records.