Skip to content
Esc
navigateopen⌘Jpreview

bar-chart

Ranked bars with labels, values, and staged growth.

The same runtime that renders the export. Scrub to any frame, switch format, and edit the fixture props.

Installation

pnpm odori add @odori/bar-chart

Source is copied into videos/components/bar-chart/ and belongs to your repository. odori diff compares it with upstream later; odori update applies the change you accept. It has no registry dependencies.

Timing contract

Every registry component declares how it behaves in time.odori test fails a cut that violates these.

Family
Data
Aspect ratios
16:9 · 9:16 · 1:1
Recommended duration
120 frames · 4s
Minimum duration
60 frames · 2s
Entrance
50 frames
Exit
0 frames
Reduced motion
bars appear at full length
Requires
sans font
Content limits
bars ≤ 6, labelLength ≤ 28

Props

PropTypeDefaultRequired
dataBarDatum[]Yes
titlestring
unitAppended to every printed value.string""
highlightIndex drawn in the accent color.number