Issue with Dataview and Chart - order of js files


I’m having some strange issues. If I attach the dhtmlxchart.js before I attach dhtmlxdataview.js, I get the following error when loading the chart (the dataview works fine):

However, when I attach the dhtmlxdataview.js before I attach dhtmlxchart.js, the chart works fine, but this time the dataview doesn’t and gives this error:

I should also mention that the chart is being attached the dhtmlxwindow and the dataview is being attached to dhtmlxlayout. I am using lots of other components also.

I appreciate any help you can offer.

Sorry - I just saw this thread:

I will test out that core file. I should have searched better before posting this.

Thanks as always!