QSplineSeries#

The QSplineSeries class presents data as spline charts. More

Inheritance diagram of PySide6.QtCharts.QSplineSeries

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

A spline series stores the data points and the segment control points needed by QPainterPath to draw a spline. The control points are automatically calculated when the data changes. The algorithm computes the points so that the normal spline can be drawn.

../../_images/examples_splinechart.png

The following code snippet illustrates how to create a basic spline chart:

QSplineSeries* series = new QSplineSeries();
series->append(0, 6);
series->append(2, 4);
...
chart->addSeries(series);
class PySide6.QtCharts.QSplineSeries([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 QChart instance, the ownerships is transferred.