AbstractAxis QML Type

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

Import Statement: import QtGraphs
Instantiates: QAbstractAxis
Inherited By:

BarCategoryAxis and ValueAxis

Status: Technical Preview

Properties

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 [read-only]

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 [read-only]

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.


© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.