Updated
Tide Chart
ProCustomize
Stream
number
Bands4
Height260px
Accent
Installation
ProTide Chart is a Pro component
Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.
Install with a key
- Add the Pro registry to
components.json:components.json { "registries": { "@uibrik-pro": { "url": "https://uibrik.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" } } } } - Put your key in
.env.localand add that file to.gitignore:.env.local UIBRIK_LICENSE=your-license-key - Install it:
Terminal npx shadcn@latest add @uibrik-pro/tide-chart
Loading your installation…
Usage
import { TideChart } from "@/components/uibrik/tide-chart/tide-chart";<TideChart title="Traffic by source" layout="stream" format={{}} height={260} accent="" onActiveChange={(index) => {}} // data={[…]} // series={[{ key: "…", label: "…" }]}/>Where to use Tide Chart
Traffic by source
A streamgraph of flowing bands shows how channels change over time.
Pairs with Stacked Bars
Category trends
Clicking a band folds the rest away and shows its parts.
Media and topic trends
Bands in shades of their colour suit music, news and search trends.
Pairs with Ridgeline Chart
Props
TideChart- title
- Type string
- "Traffic by source"
- Names what is plotted.
- layout
- Type "stream" | "stack"
- "stream"
- Bands centred on a flowing axis, or stacked on the floor.
- format
- Type Intl.NumberFormatOptions
- {}
- Formats every number.
- height
- Type number
- 260
- Plot height.
- accent
- Type string
- ""
- First band colour. Empty uses the chart palette.
- data
- Type ({ label: string } & Record<string, number>)[]
- –
- One row per period, oldest first, with a value per series key.
- series
- Type { key: string; label: string; color?: string; children?: { key: string; label: string; color?: string }[] }[]
- –
- The bands to draw, 2 to 6, bottom to top. A band with children splits into them, in shades of its colour, on a second click.
- onActiveChange
- Type (index: number | null) => void
- –
- Called with the row under the cursor.
- className
- Type string
- –
- Classes for the outer shell.