Home forums Chart Support Using prototype.js on the same page as canvasjs

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #4728


    I have got your canvasjs graphs working really nicely. I moved my code onto the my main page and the graph stopped displaying. I figured out the problem was I was importing prototype.js (https://ajax.googleapis.com/ajax/libs/prototype/1/prototype.js).

    Is this a known issue? Is there a way I can get both canvasjs and prototype.js to work on the same page?

    Many thanks,



    I could reproduce the issue after including prototype library. Problem is that prototype extends default objects like Array, etc by adding new properties to them because of which “for in” won’t work as expected. I’ll try to fix the problem and get back.

    Here is a thread on the same

    Thanks for Reproting,


    Hi Sunil,

    Thanks for looking into this. It would be great if you could come up with a fix for this problem, as otherwise CanvasJS looks to be an excellent solution.

    Many thanks again for your efforts.




    I’ve just fixed the problem. Please download v 1.2.1 and it should work fine. In case there is any issue, do let me know.

    Sunil Urs

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

You must be logged in to reply to this topic.