May 2019
Intermediate to advanced
542 pages
13h 37m
English
To give our memory chart a healthy dose of individuality, let's head back up to MemoryChartView.__init__() and start adding in code to style the various elements of the chart.
One of the easiest, yet most interesting, changes that we can make is to activate the chart's built-in animations:
chart.setAnimationOptions(qtch.QChart.AllAnimations)
The QChart object's animationOptions property determines which of the built-in chart animations will be run when the chart is created or updated. The options include GridAxisAnimations, which animate the drawing of the axes; SeriesAnimations, which animate updates to the series data; AllAnimations, which we've used here to activate both grid and series animations; and NoAnimations, which, ...
Read now
Unlock full access