Home forums Using CanvasJS Using CanvasJS with avada

This topic contains 2 replies, has 2 voices, and was last updated by  Vishwas R 1 month, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13055

    bas.jansen
    Member

    Hello,

    I am trying to get CanvasJS working in avada. I couldn’t get it working with a local js file (it gets overwritten somehow), so I had to use the online script:
    <script src=”http://canvasjs.com/assets/script/canvasjs.min.js”></script>

    The graph gets created properly, however the x-axis values arent responsive anymore and more importantly when I use the “Pan” button to scroll the graph simply ends (http://prnt.sc/cziy1x) while the calculations continue. When I use the local downloaded version of the script this does work, but I cant find a way to include a local script into the avada theme properly (I tried plugins and wp_enqueue_script without good results)

    Is there a way I can implement the canvas.min.js properly within the avada theme?

    Best regards,

    B. Jansen

    #13056

    bas.jansen
    Member

    Update:

    I now get the error: CanvasJS not defined when debugging. I already included jquery in the wp_enqueue_script but it seems that doesnt do anything.

    • This reply was modified 1 month, 1 week ago by  bas.jansen.
    #13059

    Vishwas R
    Keymaster

    B. Jansen,

    ‘error: CanvasJS not defined’ is thrown when canvasjs.min.js is not loaded but chart render() is called.

    Rendering chart with local js-file or from website should work fine. Kindly create jsfiddle with your issue, so that we can look into it and help you out.

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

You must be logged in to reply to this topic.