QBar3DSeries#

The QBar3DSeries class represents a data series in a 3D bar graph. More

Inheritance diagram of PySide6.QtDataVisualization.QBar3DSeries

Synopsis#

Properties#

Functions#

Signals#

Static functions#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

Warning

This section contains snippets that were automatically translated from C++ to Python and may contain errors.

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("@valueTitle for (@rowLabel, @colLabel): %.1f")
class PySide6.QtDataVisualization.QBar3DSeries(dataProxy[, parent=None])#

PySide6.QtDataVisualization.QBar3DSeries([parent=None])

Parameters:

Constructs a bar 3D series with the data proxy dataProxy and the parent parent.

Constructsa bar 3D series with the parent parent.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property PᅟySide6.QtDataVisualization.QBar3DSeries.dataProxy: PySide6.QtDataVisualization.QBarDataProxy#

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.

Access functions:
property PᅟySide6.QtDataVisualization.QBar3DSeries.meshAngle: 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

meshRotation

Access functions:
property PᅟySide6.QtDataVisualization.QBar3DSeries.rowColors#

This property holds The list of row colors in the series..

This property can be used to color the rows of the series in different colors. The ColorStyle must be set to ColorStyleUniform to use this property.

See also

ColorStyleUniform

Access functions:
property PᅟySide6.QtDataVisualization.QBar3DSeries.selectedBar: PySide6.QtCore.QPoint#

This property holds The bar in the series that is selected..

Access functions:
PySide6.QtDataVisualization.QBar3DSeries.dataProxy()#
Return type:

PySide6.QtDataVisualization.QBarDataProxy

See also

setDataProxy()

Getter of property dataProxy .

PySide6.QtDataVisualization.QBar3DSeries.dataProxyChanged(proxy)#
Parameters:

proxyPySide6.QtDataVisualization.QBarDataProxy

Notification signal of property dataProxy .

static PySide6.QtDataVisualization.QBar3DSeries.invalidSelectionPosition()#
Return type:

PySide6.QtCore.QPoint

Returns an invalid position for selection. This position is set to the selectedBar property to clear the selection from this series.

See also

clearSelection()

PySide6.QtDataVisualization.QBar3DSeries.meshAngle()#
Return type:

float

See also

setMeshAngle()

Getter of property meshAngle .

PySide6.QtDataVisualization.QBar3DSeries.meshAngleChanged(angle)#
Parameters:

angle – float

Notification signal of property meshAngle .

PySide6.QtDataVisualization.QBar3DSeries.rowColors()#

See also

setRowColors()

Getter of property rowColors .

PySide6.QtDataVisualization.QBar3DSeries.rowColorsChanged(rowcolors)#
Parameters:

rowcolors

Notification signal of property rowColors .

PySide6.QtDataVisualization.QBar3DSeries.selectedBar()#
Return type:

PySide6.QtCore.QPoint

See also

setSelectedBar()

Getter of property selectedBar .

PySide6.QtDataVisualization.QBar3DSeries.selectedBarChanged(position)#
Parameters:

positionPySide6.QtCore.QPoint

Notification signal of property selectedBar .

PySide6.QtDataVisualization.QBar3DSeries.setDataProxy(proxy)#
Parameters:

proxyPySide6.QtDataVisualization.QBarDataProxy

See also

dataProxy()

Setter of property dataProxy .

PySide6.QtDataVisualization.QBar3DSeries.setMeshAngle(angle)#
Parameters:

angle – float

See also

meshAngle()

Setter of property meshAngle .

PySide6.QtDataVisualization.QBar3DSeries.setRowColors(colors)#
Parameters:

colors

See also

rowColors()

Setter of property rowColors .

PySide6.QtDataVisualization.QBar3DSeries.setSelectedBar(position)#
Parameters:

positionPySide6.QtCore.QPoint

Selects the bar at the position position, specified as a row and column in the data array of the series.

Only one bar can be selected at a time.

To clear selection from this series, invalidSelectionPosition() is set as position.

If this series is added to a graph, the graph can adjust the selection according to user interaction or if it becomes invalid. Selecting a bar on another added series will also clear the selection.

Removing rows from or inserting rows to the series before the row of the selected bar will adjust the selection so that the same bar will stay selected.

Setter of property selectedBar .