adding averages to graphs