Class: QgsLinearlyInterpolatedDiagramRenderer¶
Alters the size of rendered diagrams using linear scaling.
Class Hierarchy¶
Base classes¶
Evaluates and returns the diagram settings relating to a diagram for a specific feature. |
- class qgis.core.QgsLinearlyInterpolatedDiagramRenderer[source]¶
Bases:
QgsDiagramRenderer- classificationField(self) str[source]¶
Returns the field name used for interpolating the diagram size.
See also
- Return type:
str
- dataDefinedSizeLegend(self) QgsDataDefinedSizeLegend | None[source]¶
Returns configuration of appearance of legend. Will return
Noneif no configuration has been set.- Return type:
Optional[QgsDataDefinedSizeLegend]
- abstract diagramSettings(self) List[QgsDiagramSettings][source]¶
Returns list with all diagram settings in the renderer
diagramSettings(self, feature:
QgsFeature, c:QgsRenderContext, s:QgsDiagramSettings) -> bool- Return type:
- 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.
See also
- 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: