Stacked area chart
A total over time and what it's made of, in absolute terms or as 100% shares.
100% columns joined by bands, showing how a mix changes across periods.
<MixShiftChart />Mix shift chart is a Pro chart.
Installation is part of Pro
The full source is included in the Pro download. Get Pro to install it with the CLI and use it in unlimited projects.
Unlock with Pronpx chartslibraryui add mix-shift-chart --from ./chartslibraryui-proUsage examples are part of Pro
Every example on this page comes with its code in the Pro download. The props and data shape below are public.
Unlock with ProRows with a period key and one non-negative key per part.
[{ period: "2024", starter: 0.24, team: 0.35, business: 0.27, enterprise: 0.14 }]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 MixShiftChartProps extends FrameProps {
data: Row[];
/** Period key. */
x: string;
/** Part keys, bottom to top. Values can be amounts or shares; each column is normalised to 100%. */
parts: SeriesInput[];
/** Format of the raw values (for tooltips and table). */
format?: FormatInput;
}A total over time and what it's made of, in absolute terms or as 100% shares.
Totals and their parts, with negatives stacked below zero.
One whole in up to six parts, with the total in the middle and a value legend.