Class: QgsSingleCategoryDiagramRenderer

class qgis.core.QgsSingleCategoryDiagramRenderer

Bases: QgsDiagramRenderer

Constructor for QgsSingleCategoryDiagramRenderer

QgsSingleCategoryDiagramRenderer(QgsSingleCategoryDiagramRenderer)

Renders the diagrams for all features with the same settings

Methods

clone

rtype

QgsSingleCategoryDiagramRenderer

convertSizeToMapUnits

diagramAttributes

rtype

List[str]

diagramSettings

diagramSettings(self, feature: QgsFeature, c: QgsRenderContext, s: QgsDiagramSettings) -> bool

diagramSize

param a0

dpiPaintDevice

legendItems

param nodeLayer

readXml

param elem

rendererName

rtype

str

setDiagramSettings

param s

writeXml

param layerElem

clone(self)QgsSingleCategoryDiagramRenderer
Return type

QgsSingleCategoryDiagramRenderer

convertSizeToMapUnits()
diagramAttributes(self) → List[str]
Return type

List[str]

diagramSettings(self) → List[QgsDiagramSettings]

diagramSettings(self, feature: QgsFeature, c: QgsRenderContext, s: QgsDiagramSettings) -> bool

Return type

List[QgsDiagramSettings]

diagramSize(self, a0: QgsFeature, c: QgsRenderContext) → QSizeF
Parameters
Return type

QSizeF

dpiPaintDevice()
legendItems(self, nodeLayer: QgsLayerTreeLayer) → List[QgsLayerTreeModelLegendNode]
Parameters

nodeLayer (QgsLayerTreeLayer) –

Return type

List[QgsLayerTreeModelLegendNode]

readXml(self, elem: QDomElement, context: QgsReadWriteContext)
Parameters
rendererName(self) → str
Return type

str

setDiagramSettings(self, s: QgsDiagramSettings)
Parameters

s (QgsDiagramSettings) –

writeXml(self, layerElem: QDomElement, doc: QDomDocument, context: QgsReadWriteContext)
Parameters