A butterfly chart, also known as a diverging bar chart, is a specialized chart type in Excel that compares two different metrics for the same categories. The data is split into two opposing directions, creating a shape similar to a butterfly. To create one, you must first arrange your data in a "three-column" format with your category labels in the first column, the negative values in the second, and the positive values in the third. You then insert a stacked bar chart, unstack the columns, and delete the axis labels to reveal the butterfly shape.
What You'll Need
- A computer running Microsoft Excel (2013 or later is recommended for the best compatibility).
- A dataset containing at least three columns of data: a Category column, a Negative Value column, and a Positive Value column.
- A basic understanding of Excel's charting tools and formatting options.
Step-by-Step
- Prepare Your Data: Open your Excel workbook and ensure your data is clean and organized. You need three distinct columns. The first column should contain your category labels (e.g., Product Names, Months, or Regions). The second column should contain the values you want to display on the left side of the butterfly (these should be negative numbers). The third column should contain the values you want to display on the right side of the butterfly (these should be positive numbers). For example, if you are comparing sales and costs, put costs in the negative column and sales in the positive column.
- Select Your Data: Click and drag your mouse to select all three columns of data, including the header row. It is important to include the header row as this will be used to label the chart later. The selected range should be a continuous block of cells.
- Insert the Chart: With the data selected, go to the "Insert" tab on the Excel ribbon at the top of the screen. In the "Charts" group, click on the small arrow in the bottom-right corner of the "Insert Column or Bar Chart" button. This will open the chart dropdown menu. Select "Stacked Bar" from the options. The chart will appear on your worksheet, likely covering some of your data cells.
- Reorder the Bars (Crucial Step): By default, the chart will group the negative and positive bars together in the order they appear in your data. To create the butterfly shape, you need the negative bars on the left and the positive bars on the right. Right-click on any of the bars in your chart and select "Select Data..." from the context menu. In the "Select Data Source" dialog box, look for the "Legend Entries (Series)" section. You will see two entries: one for your negative series and one for your positive series. Select the negative series and click the "Move Up" button until it is at the very top of the list. Click "OK" to apply the changes. The bars should now be grouped by category, with the negative side on the left and the positive side on the right.
- Convert to a Clustered Bar Chart: The chart you have now is still a stacked bar chart, which is not what we want. We need to unstack the bars so that the negative and positive values appear side-by-side. Click on the "Design" tab, which appears when the chart is selected. In the "Type" group, click on the "Change Chart Type" button. In the "Change Chart Type" dialog box, look for the "Combo" tab. Under "Choose the chart type and axis for your data series," select "Clustered Bar" for both your negative and positive series. Make sure the "Secondary Axis" box is unchecked for both series. Click "OK" to convert the chart. You should now see two distinct bars for each category, one on the left and one on the right.
- Remove the Legend: The legend at the top of the chart is now redundant because the bars are clearly separated. Click on the legend to select it, then press the "Delete" key on your keyboard. The chart will look cleaner without it.
- Remove the Vertical Axis: The vertical axis on the left of the chart is not necessary for a butterfly chart and can actually be confusing. Double-click on the vertical axis to open the "Format Axis" pane. In the pane, go to the "Axis Options" tab. Under "Labels," change the setting from "Automatic" to "None." This will remove the axis and its labels, leaving only the horizontal category labels at the bottom of the chart. Alternatively, you can simply click on the axis and press the "Delete" key.
- Format the Bars: Now you can customize the appearance of your butterfly chart to make it more readable and attractive. Click on the bars on the left side (the negative values) and use the "Format" tab to change their fill color. A light color, such as a light blue or gray, is often a good choice. Click on the bars on the right side (the positive values) and change their fill color to a contrasting color, such as a dark blue or green. You can also adjust the border color and width for a more polished look. To make the bars easier to read, consider adding data labels. Click on the "Chart Elements" button (the plus sign next to the chart) and select "Data Labels." You can then format the data labels to show the actual values or percentages.
- Adjust the Horizontal Axis: To ensure the butterfly chart is symmetrical and the data is easy to compare, you may need to adjust the horizontal axis. Double-click on the horizontal axis to open the "Format Axis" pane. In the pane, go to the "Axis Options" tab. Under "Bounds," you can set the minimum and maximum values. Ideally, you want the axis to start at a negative number equal to the magnitude of your largest negative value and end at a positive number equal to the magnitude of your largest positive value. This will center the butterfly on the vertical axis. Alternatively, you can set the "Units base" to 0 if you want the axis to cross exactly through the middle. You can also change the number of "Major units" to make the gridlines more or less frequent.
- Final Polish: The final step is to give your butterfly chart a title. Click on the chart title and type in a descriptive title that summarizes your data. You can also add a subtitle if you have additional information to convey. Finally, check the overall layout and formatting of the chart. Ensure that the font sizes are readable and that the colors are professional and appropriate for your audience.
Common Mistakes
- Incorrect Data Formatting: The most common mistake is failing to input negative numbers for the left side of the chart. If you input positive numbers for the left side, the bars will not diverge correctly, and the chart will not look like a butterfly. Ensure that the values in the second column are indeed negative numbers.
- Wrong Chart Type Selection: Trying to create a butterfly chart using a standard bar chart or a line chart will not work. The stacked bar chart is the foundation for this visualization, and the conversion to a clustered bar chart is a critical step. Skipping this conversion will result in a chart that does not display the data as intended.
- Ignoring the Order of Series: Failing to reorder the series in the "Select Data Source" dialog box is a frequent error. This will result in the positive and negative bars being grouped together in the wrong order, creating a non-symmetrical and confusing chart. Always check that the negative series is at the top of the list.
- Leaving the Vertical Axis: Leaving the vertical axis on the chart can make it look cluttered and can obscure the data. Removing the axis is a key step in creating the clean butterfly look. It is also important to note that the vertical axis represents zero, which is a crucial reference point for comparing the magnitude of the positive and negative values.
- Using Too Many Categories: A butterfly chart is best used for comparing a limited number of categories, typically fewer than ten. If you try to include too many categories, the bars will become too narrow to be readable, and the chart will become difficult to interpret. If you have a large number of categories, consider grouping them or using a different type of chart.
Tips
- Use Color Coding Effectively: The colors you choose for your bars are not just aesthetic; they also convey meaning. Use a color that indicates positive performance (e.g., green, blue, or purple) for the positive bars and a color that indicates negative performance (e.g., red, orange, or gray) for the negative bars. This makes the chart immediately intuitive for the reader.
- Start the Axis at Zero: Always ensure that the horizontal axis starts at a value that reflects the true magnitude of your data. Starting the axis at a value other than zero can exaggerate differences between the bars and lead to misleading interpretations. For example, if your largest positive value is 100 and your largest negative value is -50, set the axis minimum to -50 and the maximum to 100.
- Add Data Labels for Clarity: Data labels are essential for a butterfly chart, especially if you have a large number of categories. They allow the reader to quickly identify the exact values for each bar without having to estimate from the scale. You can format the data labels to show the actual values or percentages.
- Use a Clean, Sans-Serif Font: For the best readability, use a clean, sans-serif font such as Arial, Calibri, or Helvetica for your chart text. These fonts are easier to read on screens and in print. Avoid using decorative fonts or fonts that are too small.
- Consider the Order of Categories: The order in which you display your categories can affect the readability of the chart. You can order the categories alphabetically, by the magnitude of the difference, or by any other logical order that makes sense for your data. If you are comparing performance over time, you may want to order the categories chronologically.
- Use a Title That Explains the Comparison: The title of your chart should be descriptive and explain the purpose of the visualization. Instead of a generic title like "Butterfly Chart," use a title like "Sales vs. Costs by Region" or "Profitability Analysis." This gives the reader a clear understanding of what the chart is showing.
Troubleshooting
If your butterfly chart does not look right, check the following common issues.
- The Bars Are Not Side-by-Side: If the bars are stacked on top of each other instead of appearing side-by-side, you likely skipped step 5. Ensure that you have converted the chart from a stacked bar chart to a clustered bar chart using the "Change Chart Type" option. Also, verify that the "Secondary Axis" box is unchecked for both series in the combo chart settings.
- The Bars Are Not on Opposing Sides: If the bars are still grouped by category but are on the same side of the chart, you may have failed to reorder the series. Go back to step 4 and ensure that the negative series is at the top of the "Select Data Source" dialog box. This will move the negative bars to the left side of the chart.
- The Chart Shows All Positive Numbers: If your chart shows all positive numbers, it means that the values in your negative column are not actually negative. Excel treats numbers without a minus sign as positive. Check your data and ensure that the values in the second column are formatted as negative numbers. You can do this by selecting the column, going to the "Home" tab, and clicking on the "Decrease Decimal" button until you see a minus sign in front of the numbers.
- The Chart Is Too Small or Too Large: If the chart is too small to see the details, you can resize it by clicking and dragging the corner handles. If the chart is too large and covers too much of your worksheet, you can reduce the font size or minimize the gridlines. You can also go to the "Format" tab and adjust the "Height" and "Width" properties of the chart.
- The Axis Labels Are Missing: If the horizontal axis labels at the bottom of the chart are missing, you may have accidentally deleted them. To restore them, go to the "Design" tab and click on the "Add Chart Element" button. Select "Axis Titles" and choose "Primary Horizontal." You can then type in your own labels.
- Formatting Is Not Applying: If you try to change the color of the bars and nothing happens, ensure that you have selected the correct bars. You may have clicked on the legend or the gridlines instead of the actual data bars. Click on the bars directly to select them, and then apply the formatting.
Frequently Asked Questions
Can I create a butterfly chart in Excel on a Mac?
Yes, you can create a butterfly chart on a Mac using the same steps described above. The menu labels and button positions are very similar to the Windows version. The key is to select the "Stacked Bar" chart type and then convert it to a clustered bar chart using the "Change Chart Type" option in the Chart Design tab.
Why is my negative data showing as positive in the chart?
This usually happens because the numbers in your data source are not formatted as negative numbers. If you type a number without a minus sign, Excel treats it as a positive value. You can fix this by typing a minus sign in front of the numbers or by using the Format Cells dialog box to apply the negative number format.
Is a butterfly chart the same as a diverging bar chart?
Yes, they are essentially the same thing. A diverging bar chart is the technical name for this type of visualization. It is called a diverging bar chart because the data diverges in opposite directions from a central axis.
Can I use a butterfly chart to compare more than two metrics?
A standard butterfly chart is designed to compare two opposing metrics. However, you can extend the concept to compare more than two metrics by creating multiple butterfly charts or by using a more complex chart type like a diverging stacked bar chart. For most purposes, comparing two metrics is the most effective use of this visualization.
How do I add a zero line to the chart?
To add a zero line, you need to insert a horizontal line on top of the chart. You can do this by going to the "Insert" tab and selecting "Shapes." Choose the "Line" shape and draw it across the chart at the zero level. You can then right-click on the line and select "Format Shape" to adjust its color and thickness. This line helps to clearly visualize the difference between the positive and negative values.
What is the best way to present a butterfly chart in a presentation?
The best way to present a butterfly chart in a presentation is to keep it simple and focused. Use a clean design with a limited color palette. Make sure the font sizes are large enough to be read from the back of the room. You can also add a brief explanation of the data in your presentation notes to help your audience understand the key insights.