Class: QgsStackedDiagram¶
A diagram composed of several subdiagrams, located side by side.
Added in version 3.40.
Class Hierarchy¶
Base classes¶
Base class for all diagram types. |
Methods
Calculates the position for the next subdiagram, updating the newPos object. |
- class qgis.core.QgsStackedDiagram[source]¶
Bases:
QgsDiagram
- subDiagramPosition(self, newPos: QPointF | QPoint, c: QgsRenderContext, s: QgsDiagramSettings, subSettings: QgsDiagramSettings)[source]¶
Calculates the position for the next subdiagram, updating the
newPos
object.- Parameters:
newPos (Union[QPointF, QPoint]) – out: position of the previous diagram
c (QgsRenderContext) – renderer context
s (QgsDiagramSettings) – stacked diagram settings
subSettings (QgsDiagramSettings) – previous subdiagram settings