Silvi

ShareBars

A list of labelled bars, each filled to a share out of 100.

<k.ShareBars> draws one thin bar per row, filled to its value out of 100, with the label above it and an optional text on the right. Use it for a short list of shares or completion rates that read best as a list rather than a chart.

Example

Orders by channel

Web27 of 50
Store15 of 50
Phone8 of 50

Props

Also key, description, span (default 1) and info: see Props every component takes.

Name Type Required Default Meaning
series query name yes The query the rows come from
label column yes Each bar’s label
value column yes The filled part, 0 to 100
title text yes The heading
line column no A text printed right of the label

Checks

A series that is not one of the report’s queries, or a column it names that the query’s rows do not have, fails the typecheck, as does a missing required prop or a value of the wrong type.