

How to add vertical line to Excel bar chart Depending on your settings in steps 8 and 9, it will look like one of these images: You can also make the line thinner or thicker by changing its Width.ĭone! A vertical line is plotted in your scatter graph. Finally, switch to the Fill & Line tab and choose the Color and Dash type for the currently selected error bar.

To display a horizontal line in addition to the vertical line, set Percentage to 100 and choose the desired Direction.To hide the horizontal error bars, set Percentage to 0.Click the horizontal error bar and do one of the following:.Change Direction to Minus for the vertical line to go only downwards from the data point.Set Direction to Both if you'd like the vertical line to go upwards and downwards from the data point.Depending on your needs, set Direction to one of the following: On the Format Error Bars pane, switch to the Error Bar Options tab (the last one) and set Percentage to 100.Right-click on the vertical error bar and choose Format Error Bars… from the context menu.Select the new data point in your chart (orange in our case) and add the Percentage error bars to it ( Chart Elements button > Error Bars > Percentage).Otherwise, the selected x and/or y cell will be added to the existing array, which will lead to an error. Be sure to delete the existing contents of the Series values boxes first - usually a one element array like =. In this example, we are going to add a vertical average line to Excel chart, so we use the AVERAGE function to find the average of x and y values like shown in the screenshot: Enter the data for the vertical line in separate cells.Select your source data and create a scatter plot in the usual way ( Inset tab > Chats group > Scatter).To add a vertical line to Excel scatter chart, this is what you need to do: Our line will be dynamic and will react to any data changes automatically.

Naturally, we are not going to "tie" a line to the x-axis because we don't want to reposition it every time the source data changes. To highlight an important data point in a scatter chart and clearly define its position on the x-axis (or both x and y axes), you can create a vertical line for that specific data point like shown below:
