Hello, I am testing with your charts and I can display one chart easily with the code attached.
When I duplicate this chart and replace “chart1” with “chart2” in order to get two times the same chart on the screen I am getting only one chart anyway. He shows me the 2nd chart but without any line, it’s just an empty block.
dhtmlxEvent function is defined only in dhtmlxcommon.js (the library that is required for almost all our components, except Dataview, Chart and Calendar). dhtmlx.js (a compiled version from the Suite package) also contains it.
dhtmlxEvent function looks like so:
function dhtmlxEvent(el, event, handler){
if (el.addEventListener)
el.addEventListener(event, handler, false);
else if (el.attachEvent)
el.attachEvent("on"+event, handler);
}
Therefore, if you are using only Chart component, you may define this function and do not include dhtmlxcommon.js