Home forums Report Bugs How i will get canvas element wich is running?

This topic contains 1 reply, has 2 voices, and was last updated by  Sunil Urs 2 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #6183

    Bharat Bodage

    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


    Sunil Urs

    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

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

You must be logged in to reply to this topic.