Class: QgsLineChartPlot

A simple line chart class.

Warning

This class is not considered stable API, and may change in future!

Added in version 4.0.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsLineChartPlot

Base classes

Qgs2DXyPlot

Base class for 2-dimensional plot/chart/graphs with an X and Y axes.

Qgs2DPlot

Base class for 2-dimensional plot/chart/graphs.

QgsPlot

Base class for plot/chart/graphs.

Methods

lineSymbolAt

Returns the line symbol for the series with matching index.

lineSymbolCount

Returns the line symbols list count.

markerSymbolAt

Returns the marker symbol for the series with matching index.

markerSymbolCount

Returns the line symbols list count.

setLineSymbolAt

Sets the line symbol to use for the series with matching index.

setMarkerSymbolAt

Sets the fill symbol to use for the series with matching index.

Virtual Methods

In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsLineChartPlot. See the FAQ for more details.

initFromPlot

Initializes properties of this plot from an existing plot, transferring all applicable settings.

Static Methods

create

Returns a new line chart.

createDataGatherer

Returns a new data gatherer for a given line chart plot.

class qgis.core.QgsLineChartPlot[source]

Bases: Qgs2DXyPlot

static create() QgsLineChartPlot | None[source]

Returns a new line chart.

Return type:

Optional[QgsLineChartPlot]

static createDataGatherer(plot: QgsPlot | None) QgsVectorLayerAbstractPlotDataGatherer | None[source]

Returns a new data gatherer for a given line chart plot.

Parameters:

plot (Optional[QgsPlot])

Return type:

Optional[QgsVectorLayerAbstractPlotDataGatherer]

virtual initFromPlot(self, plot: QgsPlot | None)[source]

Initializes properties of this plot from an existing plot, transferring all applicable settings.

Parameters:

plot (Optional[QgsPlot])

lineSymbolAt(self, index: int) QgsLineSymbol | None[source]

Returns the line symbol for the series with matching index.

Parameters:

index (int)

Return type:

Optional[QgsLineSymbol]

lineSymbolCount(self) int[source]

Returns the line symbols list count.

Return type:

int

markerSymbolAt(self, index: int) QgsMarkerSymbol | None[source]

Returns the marker symbol for the series with matching index.

Parameters:

index (int)

Return type:

Optional[QgsMarkerSymbol]

markerSymbolCount(self) int[source]

Returns the line symbols list count.

Return type:

int

setLineSymbolAt(self, index: int, symbol: QgsLineSymbol | None)[source]

Sets the line symbol to use for the series with matching index.

Parameters:
setMarkerSymbolAt(self, index: int, symbol: QgsMarkerSymbol | None)[source]

Sets the fill symbol to use for the series with matching index.

Parameters: