QBar3DSeries#

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

Inheritance diagram of PySide6.QtDataVisualization.QBar3DSeries

Synopsis#

Functions#

Signals#

Static functions#

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

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

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.

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

proxyPySide6.QtDataVisualization.QBarDataProxy

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

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

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

angle – float

PySide6.QtDataVisualization.QBar3DSeries.rowColors()#
Return type

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

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

rowcolors

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

PySide6.QtCore.QPoint

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

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

positionPySide6.QtCore.QPoint

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

proxyPySide6.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.

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

meshRotation

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

colors

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

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

positionPySide6.QtCore.QPoint

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