Home forums Using CanvasJS Export to pdf not working

This topic contains 7 replies, has 4 voices, and was last updated by  Vishwas R 6 months, 2 weeks ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #15556

    Priya
    Member

    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

    #15557

    Suyash Singh
    Participant

    @priya,

    You can export chart using JSPDF. Please have a look at this example.

    ___
    Suyash Singh
    Team CanvasJS

    #15558

    Priya
    Member

    i tried the same code but after generating pdf it shows only x and y axis not shows the coloured bar

    #15559

    Suyash Singh
    Participant

    @priya,

    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.

    ___
    Suyash Singh
    Team CanvasJS

    #15566

    Priya
    Member

    yes i was animating it .now the data is print but half graph is print on it not full

    #15567

    Priya
    Member

    my problem is solve
    Thank you for your help

    #20883

    my chart is also getting cut while exporting to pdf. Any possible solutions?

    #20893

    Vishwas R
    Keymaster

    @theprogrammers,

    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.


    Vishwas R
    Team CanvasJS

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.