- class QLineSeries#
The
QLineSeries
class presents data in line charts. More…Inherited by:
QSplineSeries
Synopsis#
Methods#
def
__init__()
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 line chart is used to show information as a series of data points connected by straight lines.
Creating a basic line chart is simple:
QLineSeries* series = new QLineSeries(); series->append(0, 6); series->append(2, 4); ... chart->addSeries(series);
Constructs an empty series object that is a child of
parent
. When the series object is added to aQChartView
orQChart
instance, the ownership is transferred.