Hello,
the method UpdateViewState() is called from the Mosaic framework in order to update a component due to some state changes. This is not the right location to add data to your graph!
In order to test the graph class you can do the following:
Add a button to your application, create a slot method (e.g. onAddCoords()) and connect the OnActivate property of the button with the slot method.
Within the slot method you can add your test code. As a result, when you press the button, the graph should display the lines.
Does it work?
Best regards,
Manfred.