Waterfall chart
A bridge from one total to another, with computed subtotals that always close.
Variance to plan by period, split into drivers either side of zero with the net marked.
<VarianceTrendChart />Variance trend 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 variance-trend-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 an x key and one signed key per driver.
[{ month: "Jan", volume: 82000, price: 14000, mix: -21000, fx: -6000 }, ...]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 VarianceTrendChartProps extends FrameProps {
data: Row[];
x: string;
/** Driver keys (volume, price, mix...). Positive stacks up, negative stacks down. */
drivers: SeriesInput[];
format?: FormatInput;
/** Label for the net variance marker. */
netLabel?: string;
}A bridge from one total to another, with computed subtotals that always close.
Totals and their parts, with negatives stacked below zero.