Class: QgsVectorLayerXyPlotDataGatherer

An vector layer plot data gatherer class for XY series.

Added in version 4.0.

Class Hierarchy

Inheritance diagram of qgis.core.QgsVectorLayerXyPlotDataGatherer

Base classes

QgsVectorLayerAbstractPlotDataGatherer

An abstract vector layer plot data gatherer base class.

QgsTask

Abstract base class for long running background tasks.

QObject

class qgis.core.QgsVectorLayerXyPlotDataGatherer[source]

Bases: QgsVectorLayerAbstractPlotDataGatherer

__init__(iterator: QgsFeatureIterator, expressionContext: QgsExpressionContext, seriesDetails: Iterable[QgsVectorLayerXyPlotDataGatherer.XySeriesDetails], xAxisType: Qgis.PlotAxisType = Qgis.PlotAxisType.Interval, predefinedCategories: Iterable[str | None] = [])

The class constructor.

Parameters:
  • iterator (QgsFeatureIterator) – a feature iterator

  • expressionContext (QgsExpressionContext) – an expression conext

  • seriesDetails (Iterable[QgsVectorLayerXyPlotDataGatherer.XySeriesDetails]) – a list of XY series details

  • xAxisType (Qgis.PlotAxisType = Qgis.PlotAxisType.Interval) – the type of X axis - interval or categorical - which will decide whether X values are interval based based or categories’ index

  • predefinedCategories (Iterable[Optional[str]] = []) – a list of predefined categories, only used when the X axis type is set to Qgis.PlotAxisType.Categorical

class XySeriesDetails

Bases: object

XY series details

filterExpression
xExpression
yExpression