In Chapter 12, Creating 2D Graphics with QPainter, we created a CPU activity graph using the Qt graphics framework and the psutil library. While that approach to building a chart worked fine, it took a lot of work to create a rudimentary chart that lacked simple niceties such as axis labels, a title, or a legend. The QtChart library is also based on the Qt graphics framework, but simplifies the creation of a variety of feature-complete charts.
To demonstrate how it works, we're going to build a more complete system monitoring program that includes several charts derived from data provided by the psutil library.