LineGroups Method
Applies To
Chart object.
Description
On a 2-D chart, returns an object that represents either a single line chart group (a ChartGroup object, Syntax 1) or a collection of the line chart groups (a ChartGroups collection, Syntax 2).
Syntax 1
expression.LineGroups(Index)
Syntax 2
expression.LineGroups
expression Required. An expression that returns a Chart object.
Index Optional Variant. Specifies the chart group.
See Also
AreaGroups method, BarGroups method, ChartGroups method, ColumnGroups method, DoughnutGroups method, Line3DGroup property, PieGroups method.
Example
This example sets line group one to use a different color for each data marker. The example should be run on a 2-D chart.
myChart.LineGroups(1).VaryByCategories = True