Skip to content
ChartslibraryUI Get Pro

Variance trend

Variance to plan by period, split into drivers either side of zero with the net marked.

Get Pro to install · $79 once<VarianceTrendChart />

When to use

  • Monthly variance to plan by driver (volume, price, mix, FX)
  • Seeing whether a miss is persistent or one-off

When not to use

Good practice

  • Keep drivers in the same order every month.
  • Four drivers or fewer.

Installation

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 Pro
Already have Pro?npx chartslibraryui add variance-trend-chart --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

Rows 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

Props

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

Waterfall chart

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