[]
Gets the collection of scatter chart groups on a 2D chart.
Use this property to access the IChartGroups collection for the current scatter chart. Each item in the returned collection represents a scatter chart group in the chart.
IChartGroups XYGroups { get; }
ReadOnly Property XYGroups As IChartGroups
worksheet.Range["A1:B4"].Value = new object[,] {
{1, 10},
{2, 20},
{3, 15},
{4, 25}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.XYScatter, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"]);
IChartGroups xyGroups = chart.XYGroups;