Add data

Chart type

All 206 charts

Surplus and deficit maker

When a series runs above or below a target or zero.

Needs a date or number column for Time and a number column for Value, plus a number column for Compare with if you have it.

Need a dashboard or a data story?

We design and build them with charts drawn for your brand, not a library's defaults.

  • Product dashboards Analytics and admin views your customers open every day.
  • Reports and data stories Investor updates, annual reports and research that read in one pass.
  • Data-heavy websites Interactive charts, maps and calculators built into your site.

How to make a surplus and deficit

  1. Paste your data

    Paste cells from a spreadsheet or upload a CSV with a date or number column for Time and a number column for Value, plus a number column for Compare with if you have it.

  2. Check the columns

    The surplus and deficit picks its columns for you. Change any of them under Data.

  3. Style it and download

    Under Style, pick a look, colours, background and size, add a title and source, then download SVG or PNG.

What is a surplus and deficit?

A surplus and deficit chart is a line over time with the area between it and a baseline shaded in one colour where it runs above and another where it runs below. The baseline is zero or a second series such as a target or forecast.

How to read it

Time runs along the horizontal axis and the value up the vertical one. The shaded area shows the size and duration of each surplus or deficit, so look for long runs on one side and for the points where the line crosses the baseline.

When to use it

When a series runs above or below a target or zero. It is one of the deviation charts, which show how far values sit above or below a reference.

For categories with no time order, use a Diverging bar. To track two independent series that do not share a baseline, a Line chart is clearer.

Tips for a better surplus and deficit

  • Map a target, budget or forecast column to Compare with, so the shading shows the gap to plan rather than to zero.
  • Use evenly spaced time points; a gap in the data draws as a straight line across the missing period.
  • Pick a time range long enough to show several crossings, otherwise a single shaded block says little.

Data you need

One row per item with a date or number column for Time and a number column for Value, plus a number column for Compare with if you have it. Column names can be anything; the chart maker matches columns by type, and you can change the match under Data.

MonthActualForecast
2019-0198.3100.0
2019-02102.3106.8
2019-03111.5112.0
2019-04115.5114.4
2019-05111.2113.6
2019-06107.4110.0
2019-0796.9104.8
2019-08100.799.6
Download the sample CSV

Questions, answered

What is a surplus and deficit?
A surplus and deficit chart is a line over time with the area between it and a baseline shaded in one colour where it runs above and another where it runs below. The baseline is zero or a second series such as a target or forecast.
How do you read a surplus and deficit?
Time runs along the horizontal axis and the value up the vertical one. The shaded area shows the size and duration of each surplus or deficit, so look for long runs on one side and for the points where the line crosses the baseline.
How do I make a surplus and deficit?
Paste your data into the chart maker with a date or number column for Time and a number column for Value, plus a number column for Compare with if you have it. The surplus and deficit draws as you type. Then pick a look and a size and download it as SVG or PNG.
When should I use a surplus and deficit?
When a series runs above or below a target or zero. It belongs to the deviation family of charts, which show how far values sit above or below a reference. For categories with no time order, use a Diverging bar. To track two independent series that do not share a baseline, a Line chart is clearer.
Is this surplus and deficit maker free?
Yes. It is free with no sign-up, your data stays in your browser, and you can download the surplus and deficit as SVG or PNG.