How to graph widget can persist the data point when changing the screen?
I've adopted the Dynamic Graph widget on my application but when I change the screen from Graph screen to another screen, the data point of the Dynamic Graph widget will free all the data points due to the MVP of TouchGFX will release all resource on the presenter and view objects when changing the screen to another screen.
Now, I store the Graph data points in the Model, and when the screen has transited to the Graph screen, I will copy all data points in the Model to Dynamic Graph widget by using addDataPoint() function but the execution time when copying data from Model to the Dynamic Graph widget has consumed too high (I want to avoid this).
In practically, how can I make the data points statically or making a pointer to point to static data points when changing the screen?