XYGroups Method

Microsoft Graph Visual Basic

expression.XYGroups(Index)

expression    Required. An expression that returns one of the objects in the Applies To list.

Index    Optional Variant. Specifies the chart group.

Example

This example sets X-Y group (scatter group) one to use a different color for each data marker. The example should be run on a 2-D chart.

myChart.XYGroups(1).VaryByCategories = True