QAreaSeries

The QAreaSeries class presents data in area charts. More

Inheritance diagram of PySide6.QtCharts.QAreaSeries

Synopsis

Functions

Detailed Description

An area series is used to show quantitative data. It is based on a line series, in the way that the area between the boundary lines is emphasized with color. Since the area series is based on the line series, the QAreaSeries constructor needs a QLineSeries instance, which defines the upper boundary of the area. The area chart is drawn using the bottom of the plot area as the lower boundary by default. Instead of the bottom of the plot area, the lower boundary can be specified by another line. In that case, QAreaSeries should be initialized with two QLineSeries instances.

Note

The terms upper and lower boundary can be misleading in cases where the value of the lower boundary is greater than that of the upper boundary. The main point is that the area between these two boundary lines will be filled.

See the area chart example to learn how to create a simple area chart.

../../_images/examples_areachart.png
class PySide6.QtCharts.QAreaSeries(upperSeries[, lowerSeries=None])

PySide6.QtCharts.QAreaSeries([parent=None])

Parameters

Constructs an area series object that will be spanned between an upperSeries line and a lowerSeries line. If no lowerSeries is passed to the constructor, the x-axis is used as the lower bound instead.

The QAreaSeries does not own the upper or lower series, but the ownership stays with the caller. When the series object is added to QChartView or QChart , the instance ownership is transferred.

Constructs an area series object without an upper or a lower series with the parent object.

PySide6.QtCharts.QAreaSeries.borderColor()
Return type

PySide6.QtGui.QColor

See also

setBorderColor()

PySide6.QtCharts.QAreaSeries.borderColorChanged(color)
Parameters

colorPySide6.QtGui.QColor

PySide6.QtCharts.QAreaSeries.brush()
Return type

PySide6.QtGui.QBrush

PySide6.QtCharts.QAreaSeries.clicked(point)
Parameters

pointPySide6.QtCore.QPointF

PySide6.QtCharts.QAreaSeries.color()
Return type

PySide6.QtGui.QColor

See also

setColor()

PySide6.QtCharts.QAreaSeries.colorChanged(color)
Parameters

colorPySide6.QtGui.QColor

PySide6.QtCharts.QAreaSeries.doubleClicked(point)
Parameters

pointPySide6.QtCore.QPointF

PySide6.QtCharts.QAreaSeries.hovered(point, state)
Parameters
PySide6.QtCharts.QAreaSeries.lowerSeries()
Return type

PySide6.QtCharts.QLineSeries

See also

setLowerSeries()

PySide6.QtCharts.QAreaSeries.pen()
Return type

PySide6.QtGui.QPen

PySide6.QtCharts.QAreaSeries.pointLabelsClipping()
Return type

bool

PySide6.QtCharts.QAreaSeries.pointLabelsClippingChanged(clipping)
Parameters

clipping – bool

PySide6.QtCharts.QAreaSeries.pointLabelsColor()
Return type

PySide6.QtGui.QColor

PySide6.QtCharts.QAreaSeries.pointLabelsColorChanged(color)
Parameters

colorPySide6.QtGui.QColor

PySide6.QtCharts.QAreaSeries.pointLabelsFont()
Return type

PySide6.QtGui.QFont

PySide6.QtCharts.QAreaSeries.pointLabelsFontChanged(font)
Parameters

fontPySide6.QtGui.QFont

PySide6.QtCharts.QAreaSeries.pointLabelsFormat()
Return type

str

PySide6.QtCharts.QAreaSeries.pointLabelsFormatChanged(format)
Parameters

format – str

PySide6.QtCharts.QAreaSeries.pointLabelsVisibilityChanged(visible)
Parameters

visible – bool

PySide6.QtCharts.QAreaSeries.pointLabelsVisible()
Return type

bool

PySide6.QtCharts.QAreaSeries.pointsVisible()
Return type

bool

Returns whether the points are drawn for this series.

PySide6.QtCharts.QAreaSeries.pressed(point)
Parameters

pointPySide6.QtCore.QPointF

PySide6.QtCharts.QAreaSeries.released(point)
Parameters

pointPySide6.QtCore.QPointF

PySide6.QtCharts.QAreaSeries.selected()
PySide6.QtCharts.QAreaSeries.setBorderColor(color)
Parameters

colorPySide6.QtGui.QColor

See also

borderColor()

PySide6.QtCharts.QAreaSeries.setBrush(brush)
Parameters

brushPySide6.QtGui.QBrush

Sets the brush used for filling the area.

PySide6.QtCharts.QAreaSeries.setColor(color)
Parameters

colorPySide6.QtGui.QColor

See also

color()

PySide6.QtCharts.QAreaSeries.setLowerSeries(series)
Parameters

seriesPySide6.QtCharts.QLineSeries

Sets the series that is to be used as the area chart lower series.

See also

lowerSeries()

PySide6.QtCharts.QAreaSeries.setPen(pen)
Parameters

penPySide6.QtGui.QPen

Sets the pen used for drawing the area outline.

PySide6.QtCharts.QAreaSeries.setPointLabelsClipping([enabled=true])
Parameters

enabled – bool

PySide6.QtCharts.QAreaSeries.setPointLabelsColor(color)
Parameters

colorPySide6.QtGui.QColor

PySide6.QtCharts.QAreaSeries.setPointLabelsFont(font)
Parameters

fontPySide6.QtGui.QFont

PySide6.QtCharts.QAreaSeries.setPointLabelsFormat(format)
Parameters

format – str

PySide6.QtCharts.QAreaSeries.setPointLabelsVisible([visible=true])
Parameters

visible – bool

PySide6.QtCharts.QAreaSeries.setPointsVisible([visible=true])
Parameters

visible – bool

Determines whether data points are visible and should be drawn on the line.

See also

pointsVisible()

PySide6.QtCharts.QAreaSeries.setUpperSeries(series)
Parameters

seriesPySide6.QtCharts.QLineSeries

Sets the series that is to be used as the area chart upper series. If the upper series is null, the area chart is not drawn, even if it has a lower series.

See also

upperSeries()

PySide6.QtCharts.QAreaSeries.upperSeries()
Return type

PySide6.QtCharts.QLineSeries

See also

setUpperSeries()