Class: QgsTextDiagram

class qgis.core.QgsTextDiagram

Bases: QgsDiagram

QgsTextDiagram(QgsTextDiagram)

Circle = 0
Horizontal = 0
class Orientation

Bases: int

Rectangle = 1
class Shape

Bases: int

Triangle = 2
Vertical = 1
clone(self)QgsTextDiagram
Return type

QgsTextDiagram

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()