Add groups to line chart