Klar

Charts / React BI charts / Part-to-whole

Marimekko

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.

Install

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

Usage

<Marimekko columns={marketByRegion} series={vendors} height={404} format={(v) => '
  

 + fmt.short(v)} focus="northwind" columnNoun="Region" />

Related marimekko charts