Skip to content
Launch price: Pro is $79 once →
ChartslibraryUI
By Killian Helf · Updated 2026-11-28

Fan Chart: What It Is, When to Use It and How to Build One in React

A fan chart shows a forecast together with its uncertainty. Actual history runs up to today, a central forecast line continues from there, and shaded bands around it, typically a 50% and an 80% interval, widen as the forecast reaches further into the future. The spreading bands look like an opening fan, which gives the chart its name.

The Bank of England popularized the fan chart in the 1990s for its inflation forecasts, and central banks, statistics offices and finance teams have used it since. Its purpose is to stop readers treating a forecast as a single certain number.

What a fan chart is

A fan chart has five parts:

  1. Actual history. A solid line for the periods that have already happened.
  2. The forecast start. A clear boundary, often a vertical line or a shaded region, where actuals end and the forecast begins.
  3. A central forecast. A line, usually dashed or lighter, for the median or most likely path.
  4. Uncertainty bands. Nested shaded areas for prediction intervals. A darker inner band (for example, the 50% interval) sits inside a lighter outer band (for example, the 80% interval).
  5. A label for the bands. A note that says what the bands mean, such as "80% of simulated outcomes fall in the light band".

When to use a fan chart

  • Revenue or demand forecasts where the range matters. A plan built on the central line alone will be wrong; the bands show how wrong it could reasonably be.
  • Scenario communication to executives. "We expect 1,260 units in March, and 8 in 10 outcomes fall between 1,190 and 1,330."
  • Capacity planning. Staffing or inventory decisions often depend on the upper band, not the central line.
  • Cash runway. The lower band answers "how bad could it get?"
  • Model reviews. Showing intervals from a forecasting model makes it clear how much the model actually knows.

When not to use a fan chart

  • You don't have real interval estimates. Bands must come from a model, a simulation or historical forecast errors. Drawing "plus or minus 10%" by hand looks precise and isn't. Without real intervals, use an actual vs forecast chart with a dashed forecast line.
  • The audience needs one number to plan against. If the decision is a single target, show the plan and the forecast, and put the range in the text.
  • You're tracking progress within a month. A pacing chart shows cumulative actual against plan with a run-rate projection.
  • Several forecasts must be compared. Overlapping fans become unreadable. Use small multiples, one fan per series.
  • The forecast horizon is one period. A single interval is better shown as a point with an error bar or a range in a table.

How to read a fan chart

  1. Find where the forecast starts. Everything left of the boundary is actual; everything right of it is estimated.
  2. Follow the central line. That's the most likely path according to the model.
  3. Read the bands as ranges, not lines. The inner band is where the value lands about half the time (for a 50% interval), the outer band where it lands about four times in five (for an 80% interval).
  4. Notice how fast the fan widens. A fan that widens quickly means the forecast becomes uncertain soon. That's often the most important message.
  5. Check the label. Know which intervals are shown and how they were produced.

A common misreading: the outer edge of the fan isn't the worst or best case. With an 80% interval, one outcome in ten is expected to fall above the band and one in ten below it.

Design rules for honest fan charts

Label what the bands mean. "Shaded: 50% and 80% prediction intervals from 5,000 simulations" or "bands based on last year's forecast errors". Unlabeled bands invite guesswork.

Show the forecast boundary clearly. Actuals solid, forecast dashed, and a visible marker where one becomes the other. Never let the forecast look like history.

Join the forecast to the last actual. The central line should start at the last real value, so there is no gap and no jump.

Don't force a zero baseline. A fan chart encodes values by position, and forecasts often sit far from zero. Starting at zero would squash the bands into a thin stripe. Choose a range that fits the data and label the axis.

Order the bounds correctly. Lower bounds must sit below upper bounds, and inner intervals inside outer ones. Crossed bands are a data error, not a design choice.

Use one hue in graded shades. Darker for the inner band, lighter for the outer band. Avoid a rainbow of intervals.

Say when the forecast was made. "Forecast as of February 28" in the subtitle. A forecast without a date is hard to judge.

No dual axes. If you need to show a second measure, put it in a separate panel.

Worked example: a demand forecast

The numbers below are invented for illustration. A team forecasts monthly units after February, with intervals from a simulation:

Month Actual Forecast 80% interval 50% interval
Dec 1,140
Jan 1,180
Feb 1,215
Mar 1,260 1,190–1,330 1,225–1,295
Apr 1,300 1,195–1,410 1,245–1,355
May 1,340 1,195–1,490 1,265–1,415
Jun 1,375 1,190–1,565 1,280–1,470

As a fan chart, the solid line climbs through February, then the dashed central forecast continues upward while the bands open. By June the 80% interval spans 375 units, more than two and a half times its width in March.

A good title states the finding: "Demand should keep growing, but by June the range is wide". The subtitle: "Monthly units; forecast as of Feb 28. Shaded: 50% and 80% intervals from simulated outcomes".

For capacity planning, the useful reading is the upper band: to cover four in five outcomes in June, the team needs capacity for about 1,565 units, not 1,375.

How to build one in React

ChartslibraryUI includes a <FanChart /> component. It's part of Pro, a one-time purchase, so it isn't in the public shadcn registry. Install it from your local Pro download:

npx chartslibraryui add fan-chart --from ./chartslibraryui-pro

The chart and the shared core/ folder are copied into components/charts/ as TypeScript source you own. The data is one row per period with the actual, the forecast and lower and upper bounds for one or two intervals:

[
  { month: "Feb", actual: 1215, forecast: null },
  { month: "Mar", actual: null, forecast: 1260, p10: 1190, p90: 1330, p25: 1225, p75: 1295 },
];

What the component handles:

  • Actual history is solid, the central forecast is dashed, and the bands are nested 50% and 80% intervals.
  • It checks that bounds are ordered instead of drawing crossed bands.
  • The axis doesn't force zero, so bands stay readable.
  • Tooltips, keyboard navigation, a table view and CSV export come from the shared core.

See the fan chart component page for a live demo and props. If you only have a point forecast, the free line chart can mark forecast periods as dashed and shaded with forecastFrom.

FAQ

What does a fan chart show? A forecast with its uncertainty: actual history, a central forecast line and bands for prediction intervals that widen over time.

Why is it called a fan chart? Because the uncertainty bands spread out as the forecast horizon grows, so the shaded area opens like a hand fan.

What do the bands in a fan chart mean? Each band is a prediction interval. An 80% band, for example, is the range in which the model expects the value to fall in about 8 out of 10 outcomes. The chart should say which intervals are shown and how they were calculated.

What is the difference between a fan chart and a confidence interval chart? A fan chart is a kind of interval chart applied to forecasts, usually with several nested bands that widen over time. Strictly, forecasts use prediction intervals rather than confidence intervals; say which one you're showing.

Can I draw a fan chart without a statistical model? You can base the bands on historical forecast errors, which is a reasonable and transparent method. Don't draw arbitrary bands such as "plus or minus 10%" unless you label them as an assumption.

Should a fan chart start at zero? No. Values are encoded by position, and forcing zero squashes the bands. Choose an axis range that fits the data.

Try the free charts in your app

26 charts, MIT, one command each.