I have developed 6 Highcharts (working fine) and exported those Highcharts into a single pdf document (working fine).
The Highcharts are exporting like one below the one
Ex:
1st Highchart
2nd Highchart
3rd Highchart
4th Highchart
5th Highchart
6th Highchart
Now, I wanted to export them side by side in a pdf for two of the Highcharts like below
1st Highchart
2nd Highchart 3rd Highchart
4th Highchart 5th Highchart
6th Highchart
My default code:
Code: Select all
var texts = $('.HC');
$("#export2pdf").click(function() {
Highcharts.exportChartWithText([chart1, chart2, chart3, chart4, chart5, chart6], texts, {
type: 'application/pdf',
filename: 'Report',
});
});
$( "#export2pdf" ).trigger( "click" );
Thanks