BarCategoryAxis QML Type
Adds categories to a chart's axes. 更多...
Import Statement: | import QtCharts 2.2 |
Instantiates: | QBarCategoryAxis |
基类: |
属性
- categories : QStringList
- count : int
- max : string
- min : string
信号
- rangeChanged(string min, string max)
方法
- void clear()
详细描述
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... }
属性
信号
This signal is emitted when min or max value of the axis changes.
The corresponding signal handler is onRangeChanged
.
成员
Removes all categories. Sets the maximum and minimum values of the axis range to QString::null.