Skip to content
ChartslibraryUI Get Pro

P&L summary

A generic income statement table with variances plus a walk to the bottom line.

When to use

  • Monthly or quarterly financial reviews
  • Board pack income statement pages

When not to use

  • Detailed account-level P&L with hundreds of lines; use a real table component

Good practice

  • Mark cost lines favorable="down" so variances read correctly.
  • Mark computed lines as subtotal; they are checked against their components.

Installation

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 Pro
Already have Pro?npx chartslibraryui add pnl-summary --from ./chartslibraryui-pro

Usage

Usage 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 Pro

Data

An 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

Props

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;
}
Pro

Waterfall chart

A bridge from one total to another, with computed subtotals that always close.

Pro

Variance chart

Actual vs plan per line item: levels and variance side by side, coloured by business direction.