Skip to content
ChartslibraryUI
Get Pro

React marimekko chart

Two levels of share: column width by group size, segments by mix inside each group.

Get Pro to install · $79 once<MarimekkoChart />

A Marimekko chart shows two levels of share in one picture. Each column is a group, such as a region, and its width is that group's share of the total. Inside, the column is split into segments, and each segment's height is its share within the group. So the area of each cell is its share of everything.

That makes it the classic market map: where the money is by region and customer segment, by product and channel. Columns are sorted largest first, each column is labelled with its share of the total, and segment shares are printed when they fit. The table has every absolute value, the totals and the shares.

If the groups are about the same size, an ordinary stacked bar chart is simpler to read.

When to use

  • Market map: region × customer segment
  • Revenue by product × channel
  • Pipeline by stage × deal size

When not to use

Good practice

  • Keep to six segments or fewer; fold the rest into Other.
  • Write the biggest cell as the takeaway in the title.
  • Use absolute values; the chart works out the shares.

Installation

Marimekko chart is a Pro chart.

Installation is part of Pro

Get Pro to install it with your access key and the shadcn CLI, and use it in unlimited projects.

Unlock with Pro

Usage

Usage examples are part of Pro

Every example on this page comes with its code in Pro. The props and data shape below are public.

Unlock with Pro

Data

One row per column with a label key and one numeric key per segment.

[{ region: "North America", enterprise: 42, midMarket: 28, smb: 15 }, ...]

Missing values are null. Invalid values make the chart say what’s wrong instead of drawing a misleading picture. How charts handle bad data

Props

Every chart also accepts the shared frame props: title, subtitle, source, height, mode, toolbar. Common API

export interface MarimekkoChartProps extends FrameProps {
  /** One row per column (e.g. a region). See the Data section for the shape. */
  data: Row[];
  /** Key of the column name. */
  label: string;
  /** The segments stacked inside each column (e.g. customer segments), at most 6. */
  series: { key: string; label?: string }[];
  /** Number format for values: "currency", "integer", "compact" or a format object. */
  format?: FormatInput;
}

Treemap

Many parts of one whole, sized by area and optionally grouped.

Pro

Mix shift chart

100% columns joined by bands, showing how a mix changes across periods.

Sign in to ChartslibraryUI

New here? The same step creates your account.

Continue with Google
or

No password needed. Bought Pro? Use the email you paid with and your license is there. By signing in you agree to the Terms and Privacy policy.