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

How i will get canvas element wich is running?

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

    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

    #6185

    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.