Any ideas? If we go with the library approach, how do I register it in the QML to make it available?
QtDeclarative.qmlRegisterType(Graph, 'myPyQtGraph', 1, 0, 'PyQtGraph')
PS: Zeta, margins are now a property through QRectF class.