re-added date grouping functionality to bargraphs that was accidently removed