Skip to content
HomeCobalt

Composition bar

Shows the parts of one whole in a single bar, each part as wide as its share, with every part's amount and share written under it, so a person reads what the whole is made of at a glance and the exact figures beside it.

Examples

A fund's assets by strategy in one bar, each part as wide as its share, with every amount and share written under it.
  • Private equity$2.3B52.5%
  • Credit$1.3B28.5%
  • Real assets$530M12.0%
  • Infrastructure$310M7.0%

Assets by strategy: 4 parts, $4.4B in all. Largest Private equity, 52.5%.

Assets by strategy
CategoryAmountShare
Private equity$2.3B52.5%
Credit$1.3B28.5%
Real assets$530M12.0%
Infrastructure$310M7.0%
Total$4.4B100.0%
Legend noneThe bar alone in each row of a table of funds, one legend above; `config` gives each asset class its colour in every row.
  • Stocks
  • Bonds
  • Cash
FundHoldings
Northwind Growth

Northwind Growth holdings: 3 parts, $4.5B in all. Largest Stocks, 68.7%.

Northwind Growth holdings
CategoryAmountShare
Stocks$3.1B68.7%
Bonds$1.2B26.6%
Cash$210M4.7%
Total$4.5B100.0%
Harbor Point Income

Harbor Point Income holdings: 3 parts, $2.1B in all. Largest Bonds, 71.4%.

Harbor Point Income holdings
CategoryAmountShare
Stocks$420M20.0%
Bonds$1.5B71.4%
Cash$180M8.6%
Total$2.1B100.0%
Juniper Balanced

Juniper Balanced holdings: 3 parts, $880M in all. Largest Stocks, 52.3%.

Juniper Balanced holdings
CategoryAmountShare
Stocks$460M52.3%
Bonds$390M44.3%
Cash$30M3.4%
Total$880M100.0%
Saltmarsh Cash Reserve

Saltmarsh Cash Reserve holdings: 2 parts, $710M in all. Largest Cash, 87.3%.

Saltmarsh Cash Reserve holdings
CategoryAmountShare
Bonds$90M12.7%
Cash$620M87.3%
Total$710M100.0%
In a cardWho invests in a fund, in a chart card: nine kinds of investor, the five largest shown and the rest folded into Other.

Who invests

$3.9B

Committed by 9 kinds of investor

  • Pension plans$1.4B36.8%
  • Endowments$680M17.6%
  • Insurance companies$590M15.3%
  • Sovereign wealth funds$440M11.4%
  • Funds of funds$310M8.0%
  • Other$420M10.9%

Commitments by kind of investor: 9 parts, $3.9B in all. Largest Pension plans, 36.8%.

Commitments by kind of investor
CategoryAmountShare
Pension plans$1.4B36.8%
Endowments$680M17.6%
Insurance companies$590M15.3%
Sovereign wealth funds$440M11.4%
Funds of funds$310M8.0%
Family offices$190M4.9%
Individuals$120M3.1%
Banks$70M1.8%
Foundations$40M1.0%
Total$3.9B100.0%

Usage

Use it when

  • The parts of one whole that a person reads as shares, such as a fund's assets by strategy, its investors by kind or the forms filed this month.
  • The make-up of each row of a table, such as each fund's holdings by asset class, with legend="none" and one legend above.

Use something else when

  • Parts that a person ranks and compares by length, or more than a dozen of them. Use BarList instead.
  • Parts of a whole over time. Use AreaChart with stacked, or BarChart with layout="stacked", instead.
  • Amounts that are not parts of one whole, such as figures that overlap or do not add up. Use BarChart instead.
  • One value against a limit. Use Meter instead.

Rules

General

Content

Avoid

Limits

Install

npx shadcn@latest add https://kaanarici.com/r/cobalt/composition-bar.json
import { CompositionBar } from "@/components/cobalt/ui/composition-bar"