Quick Navigation

## Turning the Series into a Vertical Line

We’ll now see the bars from the Average series on the chart, but we want the Average value to be a vertical line. To do this, right-click on one of the bars and choose **Change Series Chart Type**.

In the **Change Chart Type** dialog that appears, choose the **X Y (Scatter)** option that shows straight lines with no marks.

Excel isn’t smart enough to display the line the way we want so we need to go back and edit the series again. Select the chart, and choose **Select Data** from the **Chart Tools’ Design** menu again.

In the **Select Data Source** dialog, choose the **Average** series and click **Edit**.

We need to specify **Series X** and **Series Y** values for our vertical line. **Series X Values** should be the place on the x-axis where we want the vertical line. In the example, this is the **Series X Value**:

=Sales!$C$18:$C$19

**Series Y Values** just need to be two values that are separated by a set interval. The numbers don’t matter so we can use 0 and 1. In the example, this is the **Series Y Value**:

=Sales!$B$18:$B$19

Click **OK** and you will see the vertical line at the average value on the chart.

To make the line span the entire chart, we need to adjust its y-axis. Double-click the secondary axis on the right side of the chart.

In the **Format Axis** dialog under **Axis Options**, set the **Minimum** and **Maximum** as the numbers specified in the average value series (in the example, the **Minimum** is 0 (zero) and the **Maximum** is 1).

Once you’ve adjusted the secondary y-axis limits, you can delete it from the chart. Select the numbers on the right side and press **Delete**. You’ll be left with a clean vertical line on the horizontal bar chart.

Now, you can customize the colors and design of the chart to emphasize the data you want to focus on. Your results might look something like this:

## Other posts in this series...

- Save a Broken Chart with Switch Columns/Rows in Chart Tools
- Build a Better, Cleaner, More Professional Line Chart
- How To Add an Average Value Line to a Bar Chart
- How to Add a Vertical Line to a Horizontal Bar Chart
- How to Add Totals to Stacked Charts for Readability
- How to Show Percentages in Stacked Bar and Column Charts
- Building Charts with Multiple Series and Custom X-Axis
- How to Create Waterfall Charts in Excel

excellent walkthrough – thanks very much

Excellent! This solved the issue I’ve been working on the entire morning!

Agreed – this is excellent! Thank you – solved the problem I thought I was completely stuck with.

At last. Got the line on my chart. Took a few goes but got there eventually.

Thanks for the explanation. I recorded the steps mentioned above in a macro and used the same in the VBA code.

Great guide, thanks so much. I had almost given up on being able to make the report in Excel the way I’d been asked to!

Just superb, thank you. And thank goodness somebody like you exists to help us all.

Awesome !!! Thanks a ton. This helped me a lot..

Is it just me?

After creating a chart, where is it shown how to add a vertical threshold line?

Thanks,

Hi Bilo!

The article is broken up into steps to make it easier to follow (it’s very long otherwise!). Please click on the link to page 2 at the bottom or go to step 2 in the Quick Navigation box at the top to get to the next step in the process!

Bilo:

No, it’s not just you. At the top of the page in the “Quick Navigation Box” there are links to several pages. The first, “1. Building a Basic Horizontal Bar Chart” shows how to create a chart. In order to add a horizontal line, you need to go through all of the links, from 1 to 5.

Thank you. This is very clearly laid out.

Great walk-through. Very helpful.

Here is another link I found related to Vertical Line Charts

You can check this out for additional information ! 🙂

http://www.goodly.co.in/vertical-line-chart-in-excel/

thank you very much, help me solved my headache

This is really.. Been pulling my hairs to combine a horizontal bar and line chart for a long long time.. Thanks for sharing

Very helpful guide – excellent !

Genius, thank you so much!