Adds categories to a chart's axes. More...
Import Statement: | import QtCharts |
Instantiates: | QBarCategoryAxis |
Inherits: |
The BarCategoryAxis type can be set up to show an axis line with tick marks, grid lines, and shades. Categories are drawn between the ticks. It can be used also with a line series.
The following QML snippet illustrates how to use BarCategoryAxis:
ChartView { BarCategoryAxis { id: categoryAxis categories: ["Jan", "Feb", "Mar", "Apr", "May", "Jun" ] } // Add a few series... }
categories : QStringList
The categories of an axis.
count : int
The number of categories of an axis.
max : string
The maximum value on the axis.
min : string
The minimum value on the axis.
rangeChanged(string min, string max)
This signal is emitted when min or max value of the axis changes.
The corresponding signal handler is onRangeChanged
.
Note: The corresponding handler is onRangeChanged
.
void clear()
Removes all categories. Sets the maximum and minimum values of the axis range to QString::null.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qml-qtcharts-barcategoryaxis.html