Home forums Using CanvasJS function to SAVE and PRINT in canvajs

Tagged: , ,

This topic contains 3 replies, has 2 voices, and was last updated by  Priyanka M S 2 months, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #22452

    adirgapalit
    Member

    I want to ask, the function to save or print the chart. Can I know the code save and print the chart inside the canvasjs.min.js I am using the student license. Actually I just want to learn how to save and print code. If I just use the library, I think I will not learn how to do that.

    Thank you

    #22459

    Priyanka M S
    Member

    @adirgapalit,

    Please take a look at this jsfiddle, which shows how to get chart as base64 image. After getting image in base64 format, you can save it as JPG / PNG as briefed in this article.

    Please refer this stackoverflow thread that briefs you how to print canvas. Please take a look at this jsfiddle, for the same.

    __
    Priyanka M S
    Team CanvasJS

    #22463

    adirgapalit
    Member

    Hi,

    Thank you

    According to this picture option save, print in chart

    YOu can see the option save piture and print picture on the right top of chart, right?
    How to get remove the button option on there?

    Thank you

    #22466

    Priyanka M S
    Member

    @adirgapalit,

    You can set exportEnabled property to false to remove the export option.

    __
    Priyanka M S
    Team CanvasJS

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

You must be logged in to reply to this topic.