One bar that is the whole, split into shares in the chart colours. Rest on a share, or focus its legend row, and it widens to show its figures while the others make room; switch shares off and the rest fill the bar again.
pnpm dlx shadcn@latest add "https://caliperui.site/r/split-bar.json"