QBar3DSeries

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

Inheritance diagram of PySide6.QtDataVisualization.QBar3DSeries

Synopsis

Functions

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

See also

setDataProxy()

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

See also

setMeshAngle()

PySide6.QtDataVisualization.QBar3DSeries.meshAngleChanged(angle)
Parameters

angle – float

PySide6.QtDataVisualization.QBar3DSeries.selectedBar()
Return type

PySide6.QtCore.QPoint

See also

setSelectedBar()

PySide6.QtDataVisualization.QBar3DSeries.selectedBarChanged(position)
Parameters

positionPySide6.QtCore.QPoint

PySide6.QtDataVisualization.QBar3DSeries.setDataProxy(proxy)
Parameters

proxyPySide6.QtDataVisualization.QBarDataProxy

See also

dataProxy()

PySide6.QtDataVisualization.QBar3DSeries.setMeshAngle(angle)
Parameters

angle – float

See also

meshAngle()

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.