- this is particularly useful if some update changes root data, options or context
- it is also useful is Chart is used in QQuickWidget and QQuickWidget is moved from one layout to another (e.g. with docking)
- also, we updated to QtQuick 2.13 but this does not seem to be important and can be changed for earlier Qt versions
adaptor: resize is called on Chart.js in Chart.qml when width or height changes
example: maintainAspectRatio is set to false, so that example also works fine with non-quadratic window sizes