use grouping for average charts