auto-grouping data based on overall time range