Change average dot to an average line

How can I change the yellow dot in a horizontal yellow line that returns me the average of all the sums. What must be different in my code?