Class: QgsBarChartPlot

A simple bar 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.QgsBarChartPlot

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

fillSymbolAt

Returns the fill symbol for the series with matching index.

fillSymbolCount

Returns the fill symbols list count.

setFillSymbolAt

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 QgsBarChartPlot. 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 bar chart.

createDataGatherer

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

class qgis.core.QgsBarChartPlot[source]

Bases: Qgs2DXyPlot

static create() QgsBarChartPlot | None[source]

Returns a new bar chart.

Return type:

Optional[QgsBarChartPlot]

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

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

Parameters:

plot (Optional[QgsPlot])

Return type:

Optional[QgsVectorLayerAbstractPlotDataGatherer]

fillSymbolAt(self, index: int) QgsFillSymbol | None[source]

Returns the fill symbol for the series with matching index.

Parameters:

index (int)

Return type:

Optional[QgsFillSymbol]

fillSymbolCount(self) int[source]

Returns the fill symbols list count.

Return type:

int

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

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

Parameters:

plot (Optional[QgsPlot])

setFillSymbolAt(self, index: int, symbol: QgsFillSymbol | None)[source]

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

Parameters: