Detailed Description

C++ classes for the Qt Charts API.

Charts API is built on top of Qt Graphics View Framework. Charts can be displayed as QGraphicsWidget using the QChart class. However there is also the convenience class QChartView , which is QWidget based. These enable us to quickly use Qt Charts as a normal Qt widget.

If you intend to use Qt Charts C++ classes in your application, use the following include and using directives:

import PySide2.QtCharts

Each chart type is represented by the QAbstractSeries derived class. To create charts, the users have to use an instance of the related series class and add it to a QChart instance.

series = QtCharts.QLineSeries()
chartView = QtCharts.QChartView()

The module also provides QML types .