I have a page with three tabs on it. When I click on each tab, a component is rendered that contains numerous charts and graphs using high-charts. At the top, there is an 'Export to PDF' button. When I click this button, I want the charts on each tab to be converted into PDFs. I am using the HTML2Canvas library to capture the charts on each tab and the jsPDF library to generate the PDFs. However, the issue is that when I'm on the first tab and click on the 'Export to PDF' button without visiting the second and third tabs, it captures the data from the first tab, but it doesn't capture the data from the second and third tabs. How can I capture the data from the second and third tabs without visiting them? i am using angular 7
i have used numerous ways to do this in html2canvas library and detached views but the issue persists. the problem is how can i export those charts without visiting other 2 tabs because the data will come on demand. e.g When I click on tab 2, only then its data appear. suggest me a workaround