You must be logged in to post your query.
Home › Forums › Chart Support › Load canvasjs from dojo config
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
@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
You must be logged in to reply to this topic. Login/Register