[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IChart.XYGroups

XYGroups Property

XYGroups

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.

Declaration
IChartGroups XYGroups { get; }
ReadOnly Property XYGroups As IChartGroups
Examples
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;