To change a bar chart to a line chart in Excel, right-click on any of the data bars in your chart, select Change Series Chart Type, and choose Line from the chart gallery. This process allows you to shift from comparing individual categories to visualizing trends over time or continuous data sequences.
Changing the chart type is a non-destructive process, meaning your underlying data remains untouched; only the visual representation changes. This is particularly useful when you realize that a bar chart is too cluttered for a large number of data points or when you want to highlight the slope and direction of a trend rather than the magnitude of specific values.
What You'll Need
- A computer with Microsoft Excel installed.
- An existing dataset organized in rows and columns.
- A bar chart already created from that dataset.
Step-by-Step
- Select the Chart: Click anywhere inside the bar chart you wish to modify. This will activate the chart tools in the top ribbon.
- Access Chart Type Options: There are two primary ways to do this:
- Right-Click Method: Right-click directly on one of the colored bars in the chart. From the context menu that appears, select Change Series Chart Type...
- Ribbon Method: Go to the Chart Design tab in the top menu ribbon. In the Type group, click the Change Chart Type button.
- Choose the Line Chart: A dialog box titled "Change Chart Type" will open. In the left-hand sidebar, click on Line.
- Select the Specific Line Style: Once you select "Line," several subtypes will appear in the top pane. Choose the one that fits your needs:
- Line: A basic line connecting data points.
- Stacked Line: Useful for showing the total sum of multiple series.
- Line with Markers: Adds dots to each data point, making individual values easier to identify.
- Confirm the Change: Click OK. Excel will instantly convert your bars into lines.
Common Mistakes
- Selecting the Wrong Series: If you have multiple data series (multiple colors of bars), right-clicking a specific bar may only change that one series. If you want to change the entire chart, use the Chart Design tab in the ribbon.
- Using Line Charts for Categorical Data: Line charts imply a connection or a trend between points. If your X-axis consists of unrelated categories (e.g., "Apples," "Oranges," "Bananas"), a line chart can be misleading because it suggests a progression that doesn't exist.
- Overcrowding the Chart: Converting a bar chart with 50 different series into a line chart often results in "spaghetti code" visuals where lines overlap so much they become unreadable.
Tips
- Create a Combo Chart: If you have two different types of data (e.g., total sales in dollars and the number of units sold), don't change everything to a line. In the Change Chart Type menu, select Combo. This allows you to keep one series as a bar and change the other to a line.
- Use a Secondary Axis: When using a Combo chart, check the Secondary Axis box for the line series. This creates a second Y-axis on the right side of the chart, which is essential if the two data series have vastly different scales (e.g., one is in the millions and the other is a percentage).
- Smooth the Lines: To make a jagged line look professional, right-click the line, select Format Data Series, go to the Fill & Line (paint bucket) icon, and check the Smoothed line box at the bottom.
Troubleshooting
If the chart does not change as expected, try these steps in order:
- Check Data Selection: Ensure your data is formatted as numbers. If Excel perceives your numbers as text, it cannot plot them on a continuous line.
- Verify Chart Activation: If the Chart Design tab is missing from the ribbon, you haven't clicked inside the chart area. Click the chart again to make the menu appear.
- Reset Chart Type: If the chart looks distorted after the change, go back to Change Chart Type and select Clustered Column to reset it, then try selecting the Line option again.
- Check for Hidden Rows: If the line has gaps, it is likely because there are empty cells or hidden rows in your data range. You can change how Excel handles empty cells by right-clicking the chart, selecting Select Data, and clicking Hidden and Empty Cells.
Frequently Asked Questions
Can I change only one bar to a line while keeping others as bars?
Yes. Right-click the specific bar you want to change and select Change Series Chart Type. In the Combo menu, you can assign a "Line" type to that specific series while leaving the others as "Clustered Column."
Why did my X-axis change when I switched to a line chart?
Line charts often treat the X-axis as a "Date Axis" automatically if Excel detects dates. If the spacing looks wrong, right-click the X-axis, select Format Axis, and change the Axis Type to Text axis.
Is there a keyboard shortcut to change the chart type?
There is no single direct shortcut key to change the chart type, but you can use Alt + JC (on Windows) to quickly access the Chart Design tab and then navigate to the Change Chart Type menu.
Can I convert a line chart back into a bar chart?
Yes. Follow the exact same steps: right-click the line, select Change Series Chart Type, and choose Column or Bar from the gallery.
What is the difference between a "Bar" and "Column" chart in Excel?
In Excel terminology, a Column chart has vertical bars, while a Bar chart has horizontal bars. Both can be converted to a line chart using the same method.