Stacked bar chart
Totals and their parts, with negatives stacked below zero.
Two levels of share: column width by group size, segments by mix inside each group.
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.
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 ProUsage 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 ProOne 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
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;
}Totals and their parts, with negatives stacked below zero.
Many parts of one whole, sized by area and optionally grouped.
100% columns joined by bands, showing how a mix changes across periods.