Class: QgsLinearlyInterpolatedDiagramRenderer

class qgis.core.QgsLinearlyInterpolatedDiagramRenderer

Bases: qgis._core.QgsDiagramRenderer

QgsLinearlyInterpolatedDiagramRenderer(other: QgsLinearlyInterpolatedDiagramRenderer) Copy constructor

Methods

classificationAttributeExpression
classificationAttributeIsExpression
classificationField Returns the field name used for interpolating the diagram size.
clone
convertSizeToMapUnits
dataDefinedSizeLegend Returns configuration of appearance of legend.
diagramAttributes
diagramSettings Returns list with all diagram settings in the renderer
diagramSize
dpiPaintDevice
legendItems
lowerSize
lowerValue
readXml
referencedFields
rendererName
setClassificationAttributeExpression
setClassificationAttributeIsExpression
setClassificationField Sets the field name used for interpolating the diagram size.
setDataDefinedSizeLegend Configures appearance of legend.
setDiagramSettings
setLowerSize
setLowerValue
setUpperSize
setUpperValue
upperSize
upperValue
writeXml

Signals

Attributes

classificationAttributeExpression(self) → str
classificationAttributeIsExpression(self) → bool
classificationField(self) → str

Returns the field name used for interpolating the diagram size.

New in version 3.0.

clone(self) → QgsLinearlyInterpolatedDiagramRenderer
convertSizeToMapUnits()
dataDefinedSizeLegend(self) → QgsDataDefinedSizeLegend

Returns configuration of appearance of legend. Will return null if no configuration has been set.

New in version 3.0.

diagramAttributes(self) → List[str]
diagramSettings(self) → List[QgsDiagramSettings]

Returns list with all diagram settings in the renderer

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

diagramSize(self, a0: QgsFeature, c: QgsRenderContext) → QSizeF
dpiPaintDevice()
legendItems(self, nodeLayer: QgsLayerTreeLayer) → List[QgsLayerTreeModelLegendNode]
lowerSize(self) → QSizeF
lowerValue(self) → float
readXml(self, elem: QDomElement, context: QgsReadWriteContext)
referencedFields(self, context: QgsExpressionContext = QgsExpressionContext()) → Set[str]
rendererName(self) → str
setClassificationAttributeExpression(self, expression: str)
setClassificationAttributeIsExpression(self, isExpression: bool)
setClassificationField(self, field: str)

Sets the field name used for interpolating the diagram size.

New in version 3.0.

setDataDefinedSizeLegend(self, settings: QgsDataDefinedSizeLegend)

Configures appearance of legend. Takes ownership of the passed settings objects.

New in version 3.0.

setDiagramSettings(self, s: QgsDiagramSettings)
setLowerSize(self, s: QSizeF)
setLowerValue(self, val: float)
setUpperSize(self, s: QSizeF)
setUpperValue(self, val: float)
upperSize(self) → QSizeF
upperValue(self) → float
writeXml(self, layerElem: QDomElement, doc: QDomDocument, context: QgsReadWriteContext)