Charts / React BI charts / Part-to-whole
Share within each column stacked to 100%, with column width set by the column’s size, so every cell’s area is its slice of the whole market.
React component Marimekko, data through props. How a total splits into its pieces. Tags: marimekko, mekko, mosaic, market-share, stacked, variable-width.
npm i klar-charts
import 'klar-charts/styles.css'
import { ThemeScope, Marimekko } from 'klar-charts'
# or copy the source:
npx shadcn@latest add https://klar.run/r/bi-marimekko.json<Marimekko columns={marketByRegion} series={vendors} height={404} format={(v) => '