abstract data for BarChartGrouped from Map[(G, S), Y] to D + helper functions