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. |
Abstract Methods
Returns list with all diagram settings in the renderer |
Methods
Returns the field name used for interpolating the diagram size. |
|
Returns configuration of appearance of legend. |
|
Sets the field name used for interpolating the diagram size. |
|
Configures appearance of legend. |
|
- 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
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:
feature (
QgsFeature
)c (
QgsRenderContext
)
- Return type:
bool
- 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: