Home › forums › Using CanvasJS › Export to pdf not working
This topic contains 7 replies, has 4 voices, and was last updated by Vishwas R 1 year ago.
i embeded export to pdf function on my code
when i was click on it it was working but when i open that file it not show graph only it shows x and y axis content and when i print it it shows only half graph
You can export chart using JSPDF. Please have a look at this example.
i tried the same code but after generating pdf it shows only x and y axis not shows the coloured bar
Are you animating the chart? If so you need to export the chart after the animation is complete. Please take a look at this updated jsFiddle.
yes i was animating it .now the data is print but half graph is print on it not full
my problem is solve
Thank you for your help
my chart is also getting cut while exporting to pdf. Any possible solutions?
You can pass image width and height as parameters to addImage method of jsPDF to handle clipping of chart while exporting to pdf. Please take a look at this updated jsfiddle.
You must be logged in to reply to this topic.