A fan chart in Excel is a specialized visualization used to display a forecast along with the associated uncertainty or confidence intervals over time. Unlike a simple line chart that shows a single predicted path, a fan chart uses shaded areas (the "fans") to show the range of possible outcomes, typically representing different probability levels such as 50%, 80%, and 95%. This achieves a more honest representation of data by acknowledging that the further into the future a forecast goes, the less certain it becomes.
What You'll Need
- Microsoft Excel (Desktop version is recommended for advanced formatting).
- A dataset containing a time series (dates or periods) in the first column.
- A central forecast value (the median or mean projection).
- Calculated upper and lower bounds for at least two or three levels of confidence (e.g., Low/High for 50% and Very Low/Very High for 95%).
Step-by-Step
- Organize Your Data Table
To create a fan chart, your data must be structured specifically for a Stacked Area Chart. You cannot simply plot the upper and lower bounds as they are; you must calculate the difference between the bounds to create "layers." Set up your columns as follows:- Column A: Date/Time Period.
- Column B: The Lower Bound of your widest confidence interval (e.g., 95% Lower).
- Column C: The difference between the 95% Lower and the 80% Lower bound.
- Column D: The difference between the 80% Lower and the 50% Lower bound.
- Column E: The Central Forecast (Median).
- Column F: The difference between the Median and the 50% Upper bound.
- Column G: The difference between the 50% Upper and the 80% Upper bound.
- Column H: The difference between the 80% Upper and the 95% Upper bound.
- Calculate the Delta Values
Excel's Stacked Area chart adds values on top of each other. If your 95% lower bound is 100 and your 80% lower bound is 120, you cannot plot 100 and 120; you must plot 100 and then 20 (the difference). Use a simple formula like=C2-B2for the second column and drag it down for all time periods. Repeat this for every layer moving toward the center and then back out to the upper bound. - Insert the Stacked Area Chart
Highlight the entire data range, including the Date column and all the calculated difference columns. Go to the Insert tab on the ribbon. In the Charts group, click the Insert Column or Area Chart icon and select Stacked Area. - Convert the Central Forecast to a Line
Initially, your central forecast will be part of the stacked area, which looks incorrect. Right-click on the area representing the central forecast and select Change Series Chart Type. In the dialog box, find the series name for your central forecast and change its chart type from Stacked Area to Line. Ensure the "Secondary Axis" checkbox remains unchecked so it stays on the same scale as the fans. - Format the "Fan" Shading
To get the classic fan look, you need to use gradients or varying shades of the same color. Right-click on the outermost area (the 95% bound) and select Format Data Series. Under the Fill options, choose a light color (e.g., light blue). Move to the next inner area and choose a slightly darker shade of blue. Repeat this process, making the colors progressively darker as they approach the central line. - Remove Unnecessary Elements
To clean up the professional look, click on the legend and remove the labels for the "difference" columns, as they are confusing to the reader. Instead, create a custom legend using text boxes or a separate table that explains what the shaded regions represent (e.g., "Dark Blue = 50% Confidence"). - Adjust the X-Axis
If your dates are appearing as numbers or are too crowded, right-click the X-axis and select Format Axis. Under Axis Options, ensure the axis type is set to Date axis. You can adjust the units (months, years) to make the timeline more readable.
Common Mistakes
- Plotting Absolute Values: The most frequent error is plotting the actual upper and lower bound values. Because a Stacked Area chart adds values together, plotting a lower bound of 100 and an upper bound of 150 will result in a total height of 250. Always use the difference (delta) between the bounds.
- Incorrect Series Order: If the layers appear in the wrong order, it is usually because the columns in the spreadsheet are not ordered from the lowest bound to the highest bound. The sequence must be: Lower Bound $\rightarrow$ Lower Deltas $\rightarrow$ Central Line $\rightarrow$ Upper Deltas.
- Overloading the Chart: Adding too many confidence intervals (e.g., 10% increments) makes the chart a muddy mess of colors. Stick to 2 or 3 levels of uncertainty for maximum clarity.
- Using the Wrong Chart Type: Using a standard Area chart instead of a Stacked Area chart will cause the shapes to overlap and hide the lower layers.
Tips
- Use Transparency: Instead of just choosing different shades of one color, you can use the Transparency slider in the Format Data Series pane. Set the outer layers to 70% transparency and the inner layers to 30% to create a sophisticated, professional glow.
- Dynamic Ranges: If your forecast updates weekly, use Excel Tables (Ctrl+T) for your data source. This ensures that when you add a new date and new forecast values to the bottom of the list, the fan chart updates automatically without you having to re-select the data range.
- Highlighting the "Now" Point: Use a vertical line (inserted as a shape or a separate data series) to mark the current date. This clearly separates the historical data (actuals) from the forecast (the fan), which is critical for the viewer's understanding.
- Consistent Color Palette: Use a monochromatic color scheme. If your central line is dark blue, use light blue, medium blue, and pale blue for the fans. Avoid using contrasting colors like red and green, as this implies "good" or "bad" rather than "certainty" or "uncertainty."
Troubleshooting
If your chart does not look like a fan and instead looks like a series of jagged mountains, check your delta calculations first. Ensure that no delta value is negative; if a lower bound is higher than the previous one, the subtraction must still result in a positive addition to the stack. If you see negative values, your area chart will dip below the axis, ruining the visual.
If the central line is hidden behind the shaded areas, right-click the line and select Bring to Front. Alternatively, ensure the central line is the last series added to the chart or that it is correctly set as a Line chart type, which typically renders on top of area fills.
If the X-axis dates are missing or showing as 1, 2, 3, check that your date column is actually formatted as a Date in Excel. If the cells are formatted as Text, Excel cannot treat them as a timeline and will simply count the entries.
Frequently Asked Questions
Can I make a fan chart with only one confidence interval?
Yes. You only need the lower bound, the difference between the lower bound and the median, and the difference between the median and the upper bound. This will create a single shaded "band" around your central line.
Does Excel have a built-in "Fan Chart" button?
No, Excel does not have a native fan chart template. It must be constructed using a combination of a Stacked Area chart and a Line chart as described in the steps above.
How do I calculate the confidence intervals for the chart?
Confidence intervals are usually calculated using the standard error of the forecast. For a simple approach, you can use the FORECAST.ETS.CONFINT function in newer versions of Excel to determine the margin of error for a specific confidence level.
Why is my central line not straight?
The line follows your data. If the line is jagged, it means your forecast values fluctuate. If you want a smooth trend, you may need to apply a moving average to your forecast data before plotting it.
Can I use this for non-financial data?
Absolutely. Fan charts are widely used in meteorology (for temperature projections), demographics (for population growth), and project management (for completion date estimates).