
- Scatter chart excel horizontal and vertical lines how to#
- Scatter chart excel horizontal and vertical lines plus#
- Scatter chart excel horizontal and vertical lines series#
Scatter chart excel horizontal and vertical lines series#
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: Insert vertical line in Excel bar chart.Add vertical line to Excel scatter chart.We will just have to do a little lateral thinking! However, "no easy way" does not mean no way at all. But there is still no easy way to draw a vertical line in Excel graph. In the modern versions of Excel 2013, Excel 2016 and Excel 2019, you can add a horizontal line to a chart with a few clicks, whether it's an average line, target line, benchmark, baseline or whatever.
Scatter chart excel horizontal and vertical lines how to#
You will also learn how to make a vertical line interactive with a scroll bar.
Scatter chart excel horizontal and vertical lines plus#
Note that you can also use the plus icon to enable and disable the trendline.The tutorial shows how to insert vertical line in Excel chart including a scatter plot, bar chart and line graph. The data shows a strong linear relationship between height and weight. Right click any data point, then select "Add trendline".Įxcel adds a linear trendline, which works fine for this data. Trendlines help make the relationship between the two variables clear. If you want a little more white space in the vertical axis, you can reduce the plot area, then drag the axis title to the left. Select the title, type an equal sign, and click a cell. Just like the chart title, we already have titles on the worksheet that we can use, so I'm going to follow the same process to pull these labels into the chart. While I'm here I'm also going to remove the gridlines. Just select the chart, click the plus icon, and check the checkbox. The easiest way to do this is to use the plus icon. Notice the horizontal axis scale was already adjusted by Excel automatically to fit the data. I'll double click the axis, and set the minimum to 100. To help make the relationship between height and weight clear, I'm going to set the lower bound to 100. Next let's adjust the vertical axis scale. Just select the title, type an equal sign, and click the cell. Now, since we already have a decent title in cell B3, I'll use that in the chart. X values come from column C and the Y values come from column D. Here you can see there is one data series. Let's check Select Data to see how the chart is set up. When I click the mouse, Excel builds the chart. The first preview shows what we want - this chart shows markers only, plotted with height on the horizontal axis and weight on the vertical axis. Here I'll select all data for height and weight, then click the scatter icon next to recommended charts. When creating scatter charts, it's generally best to select only the X and Y values, to avoid confusing Excel. Let's create a scatter plot to show how height and weight are related. On this worksheet, we have the height and weight for 10 high school football players. A scatter chart has a horizontal and vertical axis, and both axes are value axes designed to plot numeric data. In this video, we'll look at how to create a scatter plot, sometimes called an XY scatter chart, in Excel.Ī scatter plot or scatter chart is a chart used to show the relationship between two quantitative variables.
