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 3 years, 5 months ago.

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

    simon
    Participant

    Hi,

    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,
    Simon

    #4731

    Sunil Urs
    Keymaster

    Simon,

    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,
    Sunil

    #4732

    simon
    Participant

    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.

    Simon

    #4737

    Sunil Urs
    Keymaster

    Simon,

    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.