You must be logged in to post your query.
Home › Forums › Report Bugs › How i will get canvas element wich is running?
Tagged: Convert canvas to image
Hi, How i will take canvas element from div chartContainer. Because i need to convert this canvas to image element for the purpose of take screenshot of current graph. Pls, help me. Thanks in Advance Bharat
You can access it via jQuery like this.
$(“#chartContainer .canvasjs-chart-canvas”).first()
If you need the dom element instead of jQuery object, you can use get method of jQuery
$(“#chartContainer1 .canvasjs-chart-canvas”).get(0)
— Sunil Urs
You must be logged in to reply to this topic. Login/Register