feature for stats graph unit and aggregation methods

Per conversation with @rafrombrc @trink I am PR'ing the change to stats graph.