Back to dashboards
ComponentChartFree

Share of Total Bar React component

One bar split into the parts that make up a total, with last period's split underneath and a list of each part's share, amount and change in points.

About the Share of Total Bar component

Share of Total Bar answers what a total is made of. One bar is split into its parts, so the biggest share is obvious, and a thin bar underneath shows last period's split for comparison.

The list beside it gives each part's exact share and amount, plus how many points its share moved. Point at a segment or a row to read it on its own.

When to use it

Use it for revenue by plan, traffic by channel, spend by team or any total made of a handful of parts.

Keep it to about six parts. With more, small slices get too thin to point at, so group the rest as Other.

Installation

Add the Share of Total Bar component to your project with the shadcn CLI. It lands in components/share-of-total-bar.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/share-of-total-bar

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install clsx tailwind-merge

Related components

Mini Segment Bar
Free
Span Timeline Chart
Free
Revenue Bridge Chart
Free
Ridgeline Density Chart
Free
Liquid Glass Video
Video Player