[]
Gets the collection of pie chart groups on a 2D chart.
Use this property to access pie chart group settings exposed through IChartGroups, such as the group definitions for pie-based 2D charts.
IChartGroups PieGroups { get; }
ReadOnly Property PieGroups As IChartGroups
worksheet.Range["A1:B4"].Value = new object[,] {
{"Name", "Sales"},
{"East", 35},
{"West", 25},
{"North", 40}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.Pie, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"], RowCol.Columns, true, true);
IChartGroups pieGroups = chart.PieGroups;