Home Forums Chart Support Export to pdf not working Reply To: Export to pdf not working

#15557

@priya,

We don’t have exporting chart as pdf as an inbuilt feature as of now. However with couple of lines of code you can export chart as pdf using jsPDF. Please find the code-snippet below.

var pdf = new jsPDF();
pdf.addImage(dataURL, 'JPEG', 0, 0);
pdf.save("download.pdf");

Please take a look at this JSFiddle for complete code.
exporting chart as pdf using jspdf

___
Suyash Singh
Team CanvasJS