Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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.