Home › forums › Using CanvasJS › function to SAVE and PRINT in canvajs
Tagged: chart, Print, save
This topic contains 3 replies, has 2 voices, and was last updated by Priyanka M S 2 weeks, 5 days ago.
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.
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
According to this picture
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?
You can set exportEnabled property to false to remove the export option.
You must be logged in to reply to this topic.