Export png using html2canvas salesforce

Hi
I was following this post to export the chart as png using html2canvas but for salesforce. It’s not working. Can you please provide snippet to run on salesforce?

thanks,
sandeep

Hello Sandeep,
The html2canvas is not a DHTMLX component, we don’t provide support for it. If it doesn’t work in Salesforce, you need to manually find the solution. But here are the links that may help you:

If you want to export the data to PNG, you can enable the export extension and use the export functions:
https://docs.dhtmlx.com/gantt/api__gantt_exporttopng.html

https://docs.dhtmlx.com/gantt/desktop__export.html