group by chart rework