Added average calculator for graphs