dhtmlxChart not working

Hi,

Using dhtmlxChart v.3.5 Standard edition build 120822

No matter what I do, I get this error in Firefox and Safari:

TypeError: dhtmlx.assert_enabled is not a function @ localhost/WeTrade/libs/dhtmlx/dhtmlx.js:2153

The error occurs whenever the constructor is called

new dhtmlXChart(…)

Cheers,
memo

Hi
If you have an error in the line
new dhtmlXChart(…)
you have’t unclute all the libruaries.
Make sure what you did it.

Daria,

I was thinking the same thing. I tried out various combinations, either the all-in-one:

dhtmlx.js

or the stand-alone

dhtmlxChart/codebase/dhtmlxchar.js

(and I checked the error console that they are really included, not misspelled or wrong path or whatever)

So
In this case we need completed demo to test it and try to reproduce your issue:
docs.dhtmlx.com/doku.php?id=othe … leted_demo

Hm,

It seems to work in isolation.

But together with other dhtmlx components I get different errors depending upon where I place the “include dhtmlXChart” in relation to the other “include dhtmlx…js” files. For example:

TypeError: dhtmlx.extend is not a function @ localhost/WeTrade/libs/dhtmlxCha … art.js:154
TypeError: dhtmlx.destructors is undefined @ localhost/WeTrade/libs/dhtmlxCha … hart.js:22
TypeError: dhtmlx.extend is not a function @ localhost/WeTrade/libs/dhtmlxCha … art.js:154

Demo is attached.
cdemo.zip (722 KB)

This is a good one: put a dhtmlxSpreadsheet anywhere in your code, and you’ll get all kind of exotic errors when using Chart !!!

Commenting out this line makes the chart work.

My issue was working with IE. The “thirdparty” sub folder that is included in the code base must be in the same directory as the dhtmlxchart.js file or it will not work. Outside of that all I needed was a reference to the dhtmlxchart.js and dhtmlxchart.css files.

Hi,

This is a good one: put a dhtmlxSpreadsheet anywhere in your code, and you’ll get all kind of exotic errors when using Chart !!!

Please replace dhtmlx_core.js in folder with Spreadsheet libs with the attached one. It will solve the problem.

No matter what I do, I get this error in Firefox and Safari:
TypeError: dhtmlx.assert_enabled is not a function @ localhost/WeTrade/libs/dhtmlx/dhtmlx.js:2153

dhtmlx.js contains all js libs from Suite package. Therefore, there is no need to include dhtmlxchart.js in this case. If you are including libs for components separately, dhtmlxchart.js should be included after other components, like in the following sample:
dhtmlxSuite/dhtmlxChart/samples/09_integration/03_windows.html

Also please check that the folder with chart library (dhtmlx.js or dhtmlxchart.js) contains “thirdparty” folder, like codebase folder in your demo (codebase2 does not contain it).
dhtmlx_core.zip (104 KB)