

Google Sheets displays the trendline equation at the top of your scatter plot chart. In the ‘Label’ dropdown, click on ‘Use Equation’. To add the trendline equation to your scatter plot, navigate to Chart Editor > Customize > Series > Label. In the ‘Series’ section under the trendline checkbox, you have options to customize your trendline - line thickness, color, opacity, and more.ĭepending on your data points, Google Sheets will display a line (trendline) with the shortest distance between your data points and the line itself. Navigate to Chart Editor > Customize > Series, then check the trendline box to add a trendline to your chart.

The data points will appear as floaters over spreadsheet cells. Now, you should have a raw scatter plot without trendlines. But if it creates a different chart, simply navigate to Chart Editor > Setup > Scatter plot to create a scatter plot. In this case, it should automatically create a scatter plot. In Google Sheets, you need to select the columns containing your chart, then navigate to Insert > Chart to create your chart.Īt this point, Google Sheets will create a chart that best suits the data points you’ve provided. You’ll need two columns for a single category- x and y axis. Your number of columns depends on the number of independent variable categories in your data set. The steps to create one are below:įirstly, you need to prepare your data. To add trendline equations to your chart, you must first have a chart with trendlines. How To Add Equation To Graph In Google Sheets? Let’s look at how to add this equation to your chart. Using this equation, you can identify whether or not a trend is present in your data points. Where x is the independent variable, y is the dependent variable, m is the slope of the line, and b is the y-intercept. The equation of a linear relationship is y = mx + b. The trendline equation is used to define this line. Depending on the nature of a scatter plot, this line should have the shortest distance between each data point and the line itself. The linear trendline equation is a linear relationship that describes the line that best fits a set of numerical data points. However, this article focuses on the linear trendline. There are different types of trendlines depending on the chart type and purpose of the trendline.

