[]
Gets the collection of bar chart groups on a 2D chart.
Use this property to access the IChartGroups collection for the bar chart groups in the current chart.
IChartGroups BarGroups { get; }
ReadOnly Property BarGroups As IChartGroups
worksheet.Range["A1:B4"].Value = new object[,] {
{"Month", "Sales"},
{"Jan", 10},
{"Feb", 20},
{"Mar", 15}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.BarClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"]);
IChartGroups barGroups = chart.BarGroups;
IChartGroup barGroup = barGroups[0];