I’m facing a very weird problem with ChartJS2 and Ionic that is related to the full page disappearing, only on iOS once in a while for no apparent reason, and with no errors. I can expand on whats happening, but for now let me ask a simpler question:
I think I am facing a problem with the fact that I am dynamically hiding/showing the chart based on user input and I’d like to refresh the handles to the DOM elements.
I get the DOM handles using
@ViewChild('accGraph') accCanvas; @ViewChild('gyroGraph') gyroCanvas;
in the class definition.
the corresponding template:
<canvas #accGraph></canvas> <canvas #gyroGraph></canvas>
Is there a way, subsequently, to refresh accCanvas and gyroCanvas?