I have been using the highcharts exporting module to export charts locally and it works great

In my app, I conditionally switch between a bar chart & a scatter chart showing only one at a time. Since it's an angular app, I use `ng-if` to switch between the charts. Now, highcharts export works well when i am exporting the currently rendered chart. But I am unable to export the currently non-rendered chart since the chart instance is not defined at the time of export.
Is there a way to successfully export non-rendered charts in highcharts ? Thanks.