QLineSeries#

The QLineSeries class presents data in line charts. More

Inherited by: QSplineSeries

Detailed Description#

A line chart is used to show information as a series of data points connected by straight lines.

../../_images/examples_linechart.png

Creating a basic line chart is simple:

QLineSeries* series = new QLineSeries();
series->append(0, 6);
series->append(2, 4);
...
chart->addSeries(series);
class PySide6.QtCharts.QLineSeries([parent=None])#
Parameters

parentPySide6.QtCore.QObject

Constructs an empty series object that is a child of parent. When the series object is added to a QChartView or QChart instance, the ownership is transferred.