Make statistics graph period of monitoring (per hour) configurable

Love the statistics graph. I would really love having the period of monitoring (mean denominator) configurable. Currently it is set to one hour. Making this period configurable would give meaning (pun intended) to other applications such as temperature/humidity daily, weekly, monthly mean/min/max.

I appreciate the work. Thanks.