ChartSeriesGroupCollection indexer
__getitem__(index)
Returns a ChartSeriesGroup at the specified index.
def __getitem__(self, index: int):
...
Parameter | Type | Description |
---|---|---|
index | int |
Examples
Show how to remove secondary axis.
doc = aw.Document(file_name=MY_DIR + 'Combo chart.docx')
shape = doc.get_child(aw.NodeType.SHAPE, 0, True).as_shape()
chart = shape.chart
series_groups = chart.series_groups
# Find secondary axis and remove from the collection.
i = 0
while i < series_groups.count:
if series_groups[i].axis_group == aw.drawing.charts.AxisGroup.SECONDARY:
series_groups.remove_at(i)
i += 1