Offline export bug due to nested getChartHTML wrap and boost module #8273
We have multiple charts on a same page and we need to export them all as N PNGs concurrently.
Problem is we always get the same image representing the last chart on our page, exported N times.
So we investigated and you won't believe what happened next :D
Take a look at this particular line, now everytime
We resolved the issue using the following patch:
var getChartHTML = Highcharts.Chart.prototype.getChartHTML;
// Trigger hook to get chart copy chart.getSVGForExport(options, chartOptions); Highcharts.Chart.prototype.getChartHTML = getChartHTML;
Note that without using the boost module, we don't see any issue but the wrap part of the code should still be fixed. However the boost module is needed in our case.
Should happen on all browsers, tested on latest Chrome (Version 66.0.3359.139 (Official Build) (64-bit)) and Firefox (Version 59.0.3 (64-bit)) on Windows 10.
The text was updated successfully, but these errors were encountered: