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.
Class Hierarchy¶
Base classes¶
Base class for 2-dimensional plot/chart/graphs with an X and Y axes. |
|
Base class for 2-dimensional plot/chart/graphs. |
|
Base class for plot/chart/graphs. |
Methods
Returns the fill symbol for the series with matching index. |
|
Sets the fill symbol to use for the series with matching index. |
Static Methods
Returns a new bar chart. |
- class qgis.core.QgsBarChartPlot[source]¶
Bases:
Qgs2DXyPlot
- static create() QgsBarChartPlot | None [source]¶
Returns a new bar chart.
- Return type:
Optional[QgsBarChartPlot]
- fillSymbol(self, index: int) QgsFillSymbol | None ¶
Returns the fill symbol for the series with matching
index
.- Parameters:
index (int)
- Return type:
Optional[QgsFillSymbol]
- setFillSymbol(self, index: int, symbol: QgsFillSymbol | None)¶
Sets the fill
symbol
to use for the series with matchingindex
.- Parameters:
index (int)
symbol (Optional[QgsFillSymbol])