- Qt 6.7
- Qt Graphs
- QML Types
- QtGraphs (Technical Preview)
- AbstractAxis
- Qt Graphs | Commercial or GPLv3

# AbstractAxis QML Type

A base type used for specialized axis types. More...

Import Statement: | import QtGraphs
Inherited By: | BarCategoryAxis and ValueAxis
Status: | Technical Preview

- List of all members, including inherited members
- AbstractAxis is part of Qt Graphs QML Types for 2D.

## Properties

- alignment : alignment
- gridVisible : bool
- labelsAngle : qreal
- labelsVisible : bool
- lineVisible : bool
- minorGridVisible : bool
- orientation : Qt.Orientation
- titleColor : color
- titleFont : font
- titleText : string
- titleVisible : bool
- visible : bool

## Detailed Description

Each series can be bound to only one horizontal and vertical axis.

The properties and visibility of various axis elements, such as axis line, title, labels, and grid lines, can be individually controlled.

## Property Documentation

alignment : alignment

The alignment of the axis. Can be Qt.AlignLeft, Qt.AlignRight, Qt.AlignBottom, or Qt.AlignTop.

gridVisible : bool

The visibility of the grid lines. By default, the value is `true`.

labelsAngle : qreal

The angle of the axis labels in degrees.

labelsVisible : bool

The visibility of axis labels. By default, the value is `true`.

lineVisible : bool

The visibility of the axis line. By default, the value is `true`.

minorGridVisible : bool

The visibility of the minor grid lines. Applies only to axes that support minor grid lines. By default, the value is `true`.

orientation : Qt.Orientation

The orientation of the axis. Fixed to either Qt.Horizontal or Qt.Vertical when the axis is set to a series.

titleColor : color

The color used to draw the title text.

titleFont : font

The font of the title of the axis.

titleText : string

The title of the axis. Empty by default. Axis titles support HTML formatting.

titleVisible : bool

The visibility of the axis title. By default, the value is `true`.

visible : bool

The visibility of the axis. By default, the value is `true`.