I can not find an easy way to do this.
The highcharts exporting module is submitting a POST request to the highcharts server (passing in the SVG of the chart) to generate the PDF or PNG.
I tried calling chart.exportChart()
in succession but this will not work since the first calls changes document focus and the subsequent calls will not fire. So I think you have two options:
Do it server side. Have your javascript return the SVG (chart.getSVG()
) of all the charts and write a server side script that generates the POST requests, zipping up the resulting files and returns them client side.
Stay client side. Get the SVG of the chart objects and manipulate it to embed multiple charts in one SVG document. Then make the request to the highcharts server. This way you could get one PDF document containing multiple charts.