We know that a line of best fit is a straight line drawn for a given data which may or may not pass through data points.
It is given that the line is drawn for 7 data points. Hence, the line may or may not pass through all these 7 points.
Therefore, the maximum number of data points that may not actually be on the line is 7.