Group graph data when showing large time intervals