ChartAxisCollection class
ChartAxisCollection class
Represents a collection of chart axes.
Indexers
Name | Description |
---|---|
__getitem__(index) | Gets the axis at the specified index. |
Properties
Name | Description |
---|---|
count | Gets the number of axes in this collection. |
Examples
Shows how to work with axes collection.
doc = aw.Document()
builder = aw.DocumentBuilder(doc=doc)
shape = builder.insert_chart(chart_type=aw.drawing.charts.ChartType.COLUMN, width=500, height=300)
chart = shape.chart
# Hide the major grid lines on the primary and secondary Y axes.
for axis in chart.axes:
if axis.type == aw.drawing.charts.ChartAxisType.VALUE:
axis.has_major_gridlines = False
doc.save(file_name=ARTIFACTS_DIR + 'Charts.AxisCollection.docx')
See Also
- module aspose.words.drawing.charts