count property

ChartSeriesGroupCollection.count property

Returns the number of series groups in this collection.

get count(): 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);

See Also