removeAt method
removeAt(index)
Removes a series group at the specified index. All child series will be removed from the chart.
removeAt(index: number)
Parameter | Type | Description |
---|---|---|
index | number |
Examples
Show how to remove secondary axis.
let doc = new aw.Document(base.myDir + "Combo chart.docx");
let shape = doc.getShape(0, true);
let chart = shape.chart;
let seriesGroups = chart.seriesGroups;
// Find secondary axis and remove from the collection.
for (let i = 0; i < seriesGroups.count; i++)
if (seriesGroups.at(i).axisGroup == aw.Drawing.Charts.AxisGroup.Secondary)
seriesGroups.removeAt(i);