Error when using dhtmlxChart


The problem I faced when trying to initialize the chart is if I declare the url of the external script file as below:

    <script src="js/dhtmlxchart.js" type="text/javascript"></script>

The chart is not loaded and there are 2 error messages displayed on the console:

Uncaught Reference error: dhtmlx is not defined.
Uncaught Reference error: dhtmlxChart is not defined.

But the chart is displayed when external script file is declared as below:

     <script src="js/dhtmlx.js" type="text/javascript"></script>.

I would prefer using dhtmlxchrt.js. Can anyone tell me the reason and help with this issue?


What folder of Chart package was “dhtmlxchart.js” taken from ? If you included “sources/dhtmlxChart/codebase/dhtmlxchart.js”, you need also include “sources/dhtmlxCommon/codebase/dhtmlxcore.js”.