Class: QgsLinearlyInterpolatedDiagramRenderer

Alters the size of rendered diagrams using linear scaling.

Class Hierarchy

Inheritance diagram of qgis.core.QgsLinearlyInterpolatedDiagramRenderer

Base classes

QgsDiagramRenderer

Evaluates and returns the diagram settings relating to a diagram for a specific feature.

Abstract Methods

diagramSettings

Returns list with all diagram settings in the renderer

Methods

classificationAttributeExpression

classificationAttributeIsExpression

classificationField

Returns the field name used for interpolating the diagram size.

dataDefinedSizeLegend

Returns configuration of appearance of legend.

lowerSize

lowerValue

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

class qgis.core.QgsLinearlyInterpolatedDiagramRenderer[source]

Bases: QgsDiagramRenderer

classificationAttributeExpression(self) str[source]
Return type:

str

classificationAttributeIsExpression(self) bool[source]
Return type:

bool

classificationField(self) str[source]

Returns the field name used for interpolating the diagram size.

Return type:

str

dataDefinedSizeLegend(self) QgsDataDefinedSizeLegend | None[source]

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

Return type:

Optional[QgsDataDefinedSizeLegend]

abstract diagramSettings(self) List[QgsDiagramSettings][source]

Returns list with all diagram settings in the renderer

Return type:

List[QgsDiagramSettings]

abstract diagramSettings(self, feature: QgsFeature, c: QgsRenderContext, s: QgsDiagramSettings) bool[source]
Parameters:
Return type:

bool

lowerSize(self) QSizeF[source]
Return type:

QSizeF

lowerValue(self) float[source]
Return type:

float

setClassificationAttributeExpression(self, expression: str | None)[source]
Parameters:

expression (Optional[str])

setClassificationAttributeIsExpression(self, isExpression: bool)[source]
Parameters:

isExpression (bool)

setClassificationField(self, field: str | None)[source]

Sets the field name used for interpolating the diagram size.

Parameters:

field (Optional[str])

setDataDefinedSizeLegend(self, settings: QgsDataDefinedSizeLegend | None)[source]

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

Parameters:

settings (Optional[QgsDataDefinedSizeLegend])

setDiagramSettings(self, s: QgsDiagramSettings)[source]
Parameters:

s (QgsDiagramSettings)

setLowerSize(self, s: QSizeF)[source]
Parameters:

s (QSizeF)

setLowerValue(self, val: float)[source]
Parameters:

val (float)

setUpperSize(self, s: QSizeF)[source]
Parameters:

s (QSizeF)

setUpperValue(self, val: float)[source]
Parameters:

val (float)

upperSize(self) QSizeF[source]
Return type:

QSizeF

upperValue(self) float[source]
Return type:

float