Skip to content
SENVENLI UI

Bar list

A ranked list of names with values and proportional bars; names may link.
Top products
import { BarList } from "@senvenli/react/charts";

Examples

With links

Each name opens its record; `limit` sets how many rows show first.

Guidelines

When to use it

  • The top items by a value: products, pages, regions.

Use something else when

Accessibility

Built in

  • A "Show as table" button shows the same data as a table, which screen readers get by default.

You provide

  • A title that says what the figure is.

API reference

BarList

title
string

What the chart shows, over it; leave it out when a card or a heading already says so.

aria-label
string

Names the chart when it has no visible title (a card's heading already says what it shows).

period
string
isLoading
boolean
emptyState
React.ReactNode

Shown instead of the plot when there is no data: an EmptyState size="small" or text; "No data" by default.

dataRequired
readonly BarListDatum[]
valueFormatter
ChartValueFormatterDefault plain
limit
numberDefault 5

The rows shown before "Show all": five by default, ten at most.