Class: QgsStackedBarDiagram

class qgis.core.QgsStackedBarDiagram

Bases: QgsDiagram

A stacked bar chart diagram.

Methods

clone

rtype

QgsStackedBarDiagram

diagramName

rtype

str

diagramSize

diagramSize(self, feature: QgsFeature, c: QgsRenderContext, s: QgsDiagramSettings, is_: QgsDiagramInterpolationSettings) -> QSizeF

legendSize

param value

renderDiagram

param feature

scaledFont

setPenWidth

sizeForValue

sizePainterUnits

clone(self) → QgsStackedBarDiagram
Return type

QgsStackedBarDiagram

diagramName(self) → str
Return type

str

diagramSize(self, attributes: object, c: QgsRenderContext, s: QgsDiagramSettings) → QSizeF

diagramSize(self, feature: QgsFeature, c: QgsRenderContext, s: QgsDiagramSettings, is_: QgsDiagramInterpolationSettings) -> QSizeF

Parameters
Return type

QSizeF

legendSize(self, value: float, s: QgsDiagramSettings, is_: QgsDiagramInterpolationSettings) → float
Parameters
Return type

float

renderDiagram(self, feature: QgsFeature, c: QgsRenderContext, s: QgsDiagramSettings, position: Union[QPointF, QPoint])
Parameters
scaledFont()
setPenWidth()
sizeForValue()
sizePainterUnits()