This capability is handled in the Graph Builder
Drag the x and y columns to their drop areas, then select the line of fit icon to add the regression line to the chart, then right click on the chart and under the Line of Fit object, add the Rsquare and Equation
Jim