A base type used for specialized axis types. 更多...
import 语句: | import QtCharts 2.2 |
实例化: | QAbstractAxis |
继承者: | BarCategoryAxis , CategoryAxis , DateTimeAxis , LogValueAxis ,和 ValueAxis |
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, grid lines, and shades, can be individually controlled.
alignment : alignment |
The alignment of the axis. Can be Qt.AlignLeft , Qt.AlignRight , Qt.AlignBottom ,或 Qt.AlignTop .
The color of the axis and tick marks.
The color of the grid line.
The visibility of the grid lines.
The angle of the axis labels in degrees.
The color of the axis labels.
The font of the axis labels.
更多信息,见 font .
The visibility of axis labels.
The visibility of the axis line.
The color of the minor grid line.
Applies only to axes that support minor grid lines.
The visibility of the minor grid lines. Applies only to axes that support minor grid lines.
orientation : Qt . Orientation |
The orientation of the axis. Fixed to either Qt.Horizontal or Qt.Vertical when the axis is set to a series.
reverse : alignment |
Defines whether a reverse axis is used. By default, the value is
false
.
The reverse axis is supported with a line, spline, and scatter series, as well as an area series with a cartesian chart. All axes of the same orientation attached to the same series must be reversed if one is reversed or the behavior is undefined.
The border (pen) color of the axis shades.
The fill (brush) color of the axis shades.
The visibility of the axis shades.
The font of the title of the axis.
The title of the axis. Empty by default. Axis titles support HTML formatting.
The visibility of the axis title. By default, the value is
true
.
The visibility of the axis.