Waterfall chart
A bridge from one total to another, with computed subtotals that always close.
A generic income statement table with variances plus a walk to the bottom line.
<PnlSummary />P&L summary 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 pnl-summary --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 ProAn ordered list of lines: { line, actual, plan, prior, favorable, subtotal }.
[{ line: "Revenue", actual: 12.4e6, plan: 12e6, prior: 10.3e6, favorable: "up" }, ...]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 PnlSummaryProps {
lines: PnlLine[];
format?: FormatInput;
title?: string;
subtitle?: string;
planLabel?: string;
priorLabel?: string;
/** Show the walk from the first line to the last. Default true. */
walk?: boolean;
}A bridge from one total to another, with computed subtotals that always close.
Actual vs plan per line item: levels and variance side by side, coloured by business direction.