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.

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

lineSymbol

Returns the line symbol for the series with matching index.

markerSymbol

Returns the marker symbol for the series with matching index.

setLineSymbol

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

setMarkerSymbol

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

Static Methods

create

Returns a new line chart.

class qgis.core.QgsLineChartPlot[source]

Bases: Qgs2DXyPlot

static create() QgsLineChartPlot | None[source]

Returns a new line chart.

Return type:

Optional[QgsLineChartPlot]

lineSymbol(self, index: int) QgsLineSymbol | None

Returns the line symbol for the series with matching index.

Parameters:

index (int)

Return type:

Optional[QgsLineSymbol]

markerSymbol(self, index: int) QgsMarkerSymbol | None

Returns the marker symbol for the series with matching index.

Parameters:

index (int)

Return type:

Optional[QgsMarkerSymbol]

setLineSymbol(self, index: int, symbol: QgsLineSymbol | None)

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

Parameters:
setMarkerSymbol(self, index: int, symbol: QgsMarkerSymbol | None)

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

Parameters: