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.
© 2016 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.