BarCategoryAxis QML Type
The Axis element is used for manipulating chart's axes. More...
Import Statement: | import QtCharts 2.1 |
Instantiates: | QBarCategoryAxis |
Inherits: |
Properties
- categories : QStringList
- count : int
- max : string
- min : string
Signals
- onCountChanged()
- onMaxChanged(const QString &max)
- onMinChanged(const QString &min)
Methods
- void clear()
Detailed Description
Axis can be setup to show axis line with tick marks, grid lines and shades. Categories are drawn between ticks. Note that you can use this also with lineseries too.
To access BarCategoryAxis you can use ChartView API. For example:
ChartView { BarCategoryAxis { id: categoryAxis categories: ["Jan", "Feb", "Mar", "Apr", "May", "Jun" ] } // Add a few series... }
Property Documentation
Signal Documentation
Method Documentation
Removes all categories. Sets the maximum and minimum of the axis's range to QString::null.