ChartAxisCollection class

ChartAxisCollection class

Represents a collection of chart axes.

Properties

NameDescription
countGets the number of axes in this collection.
this[]

Examples

Shows how to work with axes collection.

let doc = new aw.Document();
let builder = new aw.DocumentBuilder(doc);

let shape = builder.insertChart(aw.Drawing.Charts.ChartType.Column, 500, 300);
let chart = shape.chart;

// Hide the major grid lines on the primary and secondary Y axes.
for (let axis of chart.axes)
{
  if (axis.type == aw.Drawing.Charts.ChartAxisType.Value)
    axis.hasMajorGridlines = false;
}

doc.save(base.artifactsDir + "Charts.AxisCollection.docx");

See Also