Home Forums Chart Support Using CanvasJS with avada

Using CanvasJS with avada

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

    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="https://cdn.canvasjs.com/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

    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 7 years, 5 months ago by bas.jansen.
    #13059

    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.