QAbstractSeries

The QAbstractSeries class is a base class for all Qt Chart series. More

Inheritance diagram of PySide6.QtCharts.QAbstractSeries

Inherited by: QXYSeries, QScatterSeries, QLineSeries, QSplineSeries, QPieSeries, QCandlestickSeries, QBoxPlotSeries, QAreaSeries, QAbstractBarSeries, QStackedBarSeries, QPercentBarSeries, QHorizontalStackedBarSeries, QHorizontalPercentBarSeries, QHorizontalBarSeries, QBarSeries

Synopsis

Functions

Virtual functions

Detailed Description

Usually, the series type specific inherited classes are used instead of the base class.

class PySide6.QtCharts.QAbstractSeries
PySide6.QtCharts.QAbstractSeries.SeriesType

This enum describes the type of the series.

Constant

Description

QAbstractSeries.SeriesTypeLine

A line chart.

QAbstractSeries.SeriesTypeArea

An area chart.

QAbstractSeries.SeriesTypeBar

A vertical bar chart.

QAbstractSeries.SeriesTypeStackedBar

A vertical stacked bar chart.

QAbstractSeries.SeriesTypePercentBar

A vertical percent bar chart.

QAbstractSeries.SeriesTypePie

A pie chart.

QAbstractSeries.SeriesTypeScatter

A scatter chart.

QAbstractSeries.SeriesTypeSpline

A spline chart.

QAbstractSeries.SeriesTypeHorizontalBar

A horizontal bar chart.

QAbstractSeries.SeriesTypeHorizontalStackedBar

A horizontal stacked bar chart.

QAbstractSeries.SeriesTypeHorizontalPercentBar

A horizontal percent bar chart.

QAbstractSeries.SeriesTypeBoxPlot

A box plot chart.

QAbstractSeries.SeriesTypeCandlestick

A candlestick chart.

PySide6.QtCharts.QAbstractSeries.attachAxis(axis)
Parameters

axisPySide6.QtCharts.QAbstractAxis

Return type

bool

Attaches the axis specified by axis to the series.

Returns true if the axis was attached successfully, false otherwise.

Note

If multiple axes of the same orientation are attached to the same series, they will have the same minimum and maximum values.

PySide6.QtCharts.QAbstractSeries.attachedAxes()
Return type

Returns the list of axes attached to the series. Usually, an x-axis and a y-axis are attached to a series, except for QPieSeries , which does not have any axes attached.

PySide6.QtCharts.QAbstractSeries.chart()
Return type

PySide6.QtCharts.QChart

Returns the chart that the series belongs to.

Set automatically when the series is added to the chart, and unset when the series is removed from the chart.

PySide6.QtCharts.QAbstractSeries.detachAxis(axis)
Parameters

axisPySide6.QtCharts.QAbstractAxis

Return type

bool

Detaches the axis specified by axis from the series.

Returns true if the axis was detached successfully, false otherwise.

See also

removeAxis()

PySide6.QtCharts.QAbstractSeries.hide()

Sets the visibility of the series to false.

PySide6.QtCharts.QAbstractSeries.isVisible()
Return type

bool

PySide6.QtCharts.QAbstractSeries.name()
Return type

str

See also

setName()

PySide6.QtCharts.QAbstractSeries.nameChanged()
PySide6.QtCharts.QAbstractSeries.opacity()
Return type

float

See also

setOpacity()

PySide6.QtCharts.QAbstractSeries.opacityChanged()
PySide6.QtCharts.QAbstractSeries.setName(name)
Parameters

name – str

See also

name()

PySide6.QtCharts.QAbstractSeries.setOpacity(opacity)
Parameters

opacity – float

See also

opacity()

PySide6.QtCharts.QAbstractSeries.setUseOpenGL([enable=true])
Parameters

enable – bool

See also

useOpenGL()

PySide6.QtCharts.QAbstractSeries.setVisible([visible=true])
Parameters

visible – bool

See also

isVisible()

PySide6.QtCharts.QAbstractSeries.show()

Sets the visibility of the series to true.

PySide6.QtCharts.QAbstractSeries.type()
Return type

SeriesType

PySide6.QtCharts.QAbstractSeries.useOpenGL()
Return type

bool

See also

setUseOpenGL()

PySide6.QtCharts.QAbstractSeries.useOpenGLChanged()
PySide6.QtCharts.QAbstractSeries.visibleChanged()