BarCategoryAxis QML Type
Añade categorías a los ejes de un gráfico. Más...
| Import Statement: | import QtCharts 2.11 |
| In C++: | QBarCategoryAxis |
| Inherits: |
Propiedades
- categories : list<string>
- count : int
- max : string
- min : string
Señales
- rangeChanged(string min, string max)
Métodos
- void clear()
Descripción detallada
El tipo BarCategoryAxis puede configurarse para mostrar una línea de eje con marcas de tick, líneas de cuadrícula y sombras. Las categorías se dibujan entre las marcas. También se puede utilizar con una serie de líneas.
El siguiente fragmento QML ilustra cómo utilizar BarCategoryAxis:
ChartView { BarCategoryAxis { id: categoryAxis categories: ["Jan", "Feb", "Mar", "Apr", "May", "Jun" ] } // Add a few series... }
Documentación de Propiedades
categories : list<string>
Las categorías de un eje.
count : int [read-only]
El número de categorías de un eje.
max : string
El valor máximo del eje.
min : string
Valor mínimo del eje.
Documentación de señales
rangeChanged(string min, string max)
Esta señal se emite cuando cambia el valor del eje min o max.
El manejador de señal correspondiente es onRangeChanged.
Nota: El manejador correspondiente es onRangeChanged.
Documentación del método
void clear()
Elimina todas las categorías. Establece los valores máximo y mínimo del rango del eje a QString::null.
© 2026 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.