Home › forums › Using CanvasJS › Using prototype.js on the same page as canvasjs
This topic contains 3 replies, has 2 voices, and was last updated by Sunil Urs 5 years, 11 months ago.
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?
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,
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.
You must be logged in to reply to this topic.