Home Forums Chart Support Load canvasjs from dojo config

Load canvasjs from dojo config

Viewing 2 posts - 1 through 2 (of 2 total)
  • #28729

    Hello, i want to load canvasjs from dojo config, so i made the following :

    var dojoConfig = 
              aliases: [
              [
                'canvasjs',
                'https://cdnjs.cloudflare.com/ajax/libs/canvasjs/1.7.0/canvasjs.min.js'
              ]
            ]
          };
    

    and in my require function I call canvasjs.

    But when I am trying using it, it says : ‘canvasjs.chart is not a constructor’.

    Regards

    #28735

    @messaddek,

    The script available in CDNJS is outdated and not published by us. We recommend you to download the latest version of CanvasJS from our download page.

    You can load external libraries to your project in dojo as mentioned in this documentation page. Please take a look at this JSFiddle for an example.

    ___________
    Indranil Deo
    Team CanvasJS

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

You must be logged in to reply to this topic.