Added custom grouping to a chart.