QBar3DSeries¶
The QBar3DSeries
class represents a data series in a 3D bar graph. More…
Synopsis¶
Functions¶
def
dataProxy
()def
meshAngle
()def
selectedBar
()def
setDataProxy
(proxy)def
setMeshAngle
(angle)def
setSelectedBar
(position)
Signals¶
def
dataProxyChanged
(proxy)def
meshAngleChanged
(angle)def
selectedBarChanged
(position)
Static functions¶
def
invalidSelectionPosition
()
Detailed Description¶
This class manages the series specific visual elements, as well as the series data (via a data proxy).
If no data proxy is set explicitly for the series, the series creates a default proxy. Setting another proxy will destroy the existing proxy and all data added to it.
QBar3DSeries
supports the following format tags for setItemLabelFormat()
:
@rowTitle
Title from row axis
@colTitle
Title from column axis
@valueTitle
Title from value axis
@rowIdx
Visible row index. Localized using the graph locale.
@colIdx
Visible column index. Localized using the graph locale.
@rowLabel
Label from row axis
@colLabel
Label from column axis
@valueLabel
Item value formatted using the format of the value axis attached to the graph. For more information, see
labelFormat
.@seriesName
Name of the series
%<format spec>
Item value in the specified format. Formatted using the same rules as
labelFormat
.
For example:
proxy.setItemLabelFormat(QStringLiteral("@valueTitle for (@rowLabel, @colLabel): %.1f"))
- class PySide6.QtDataVisualization.QBar3DSeries(dataProxy[, parent=None])¶
PySide6.QtDataVisualization.QBar3DSeries([parent=None])
- Parameters
dataProxy –
PySide6.QtDataVisualization.QBarDataProxy
parent –
PySide6.QtCore.QObject
Constructs a bar 3D series with the data proxy dataProxy
and the parent parent
.
Constructsa bar 3D series with the parent parent
.
- PySide6.QtDataVisualization.QBar3DSeries.dataProxy()¶
- Return type
This property holds The active data proxy..
The series assumes ownership of any proxy set to it and deletes any previously set proxy when a new one is added. The proxy cannot be null or set to another series.
- PySide6.QtDataVisualization.QBar3DSeries.dataProxyChanged(proxy)¶
- Parameters
- static PySide6.QtDataVisualization.QBar3DSeries.invalidSelectionPosition()¶
- Return type
Returns an invalid position for selection. This position is set to the selectedBar
property to clear the selection from this series.
See also
- PySide6.QtDataVisualization.QBar3DSeries.meshAngle()¶
- Return type
float
This property holds The series rotation angle in degrees..
Setting this property is equivalent to the following call:
setMeshRotation(QQuaternion::fromAxisAndAngle(0.0f, 1.0f, 0.0f, angle))
Note
When reading this property, it is calculated from the meshRotation
value using floating point precision and always returns a value from zero to 360 degrees.
See also
- PySide6.QtDataVisualization.QBar3DSeries.meshAngleChanged(angle)¶
- Parameters
angle – float
- PySide6.QtDataVisualization.QBar3DSeries.selectedBar()¶
- Return type
This property holds The bar in the series that is selected..
- PySide6.QtDataVisualization.QBar3DSeries.selectedBarChanged(position)¶
- Parameters
position –
PySide6.QtCore.QPoint
- PySide6.QtDataVisualization.QBar3DSeries.setDataProxy(proxy)¶
- Parameters
This property holds The active data proxy..
The series assumes ownership of any proxy set to it and deletes any previously set proxy when a new one is added. The proxy cannot be null or set to another series.
- PySide6.QtDataVisualization.QBar3DSeries.setMeshAngle(angle)¶
- Parameters
angle – float
This property holds The series rotation angle in degrees..
Setting this property is equivalent to the following call:
setMeshRotation(QQuaternion::fromAxisAndAngle(0.0f, 1.0f, 0.0f, angle))
Note
When reading this property, it is calculated from the meshRotation
value using floating point precision and always returns a value from zero to 360 degrees.
See also
- PySide6.QtDataVisualization.QBar3DSeries.setSelectedBar(position)¶
- Parameters
position –
PySide6.QtCore.QPoint
This property holds The bar in the series that is selected..
© 2022 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.