I’m working on application in Angular 2. I have a fully dynamic plot, where you can click&drag any of the axises and load more data and show it in the plot. I’m using following code:
this.plot.on('plotly_relayout', () => {
this.loadNewDataAfterZoom(); //function responsible for loading data into plot
});
Everything works great, but until I click the ‘save as PNG’ button. I don’t have any clue why does it happen. I can click on whatever button I want or anywhere on the chart, but the event is expiring just in this particular case. Only when I click on this download .PNG button.
Is this button colliding with the relayout event? I really look forward for any kind of help. Thank you so much.