attachChart to window


I’m download the new object dhtmlxChart.

I’m trying in my server the sample … ndows.html but it´s wrong. The error mesage is:

The object don´t support this property or method in the next line:



Thank you.

If by some reason you are including dhtmlxcommon.js on the page - be sure that it is included before dhtmlxchart.js

Yes, i has dhtmlxcommon.js on the page and it’s before than dhtmlxchart.js.

If issue still occurs for you - please provide any kind of sample or demo link where it can be reconstructed.

<!-- LAYOUT -->
<link rel="stylesheet" type="text/css" href="codebase/dhtmlxlayout.css" />
<link rel="stylesheet" type="text/css" href="codebase/skins/dhtmlxlayout_dhx_skyblue.css" />
<script type="text/javascript" src="codebase/dhtmlxlayout.js"></script>

<!-- WINDOW -->
<link rel="stylesheet" type="text/css" href="codebase/dhtmlxwindows.css">
<link rel="stylesheet" type="text/css" href="codebase/skins/dhtmlxwindows_dhx_skyblue.css">
<script type="text/javascript" src="codebase/dhtmlxwindows.js"></script>
<script type="text/javascript" src="codebase/dhtmlxcontainer.js"></script>

<!-- CHART -->
    <link rel="STYLESHEET" type="text/css" href="codebase/dhtmlxchart.css">
<script src="codebase/dhtmlxchart.js" type="text/javascript"></script>

		var dhxWinsEF = new dhtmlXWindows();
		var barChart;

		function createWindowEF() {
			var Ef = 0;
			if (Ef>0) {
				//alert("Too many windows");
			var wef1 = dhxWinsEF.createWindow("wef1", 100, 30, 860, 500);
			dhxWinsEF.window("wef1").setIcon("../../images/iconGraph.gif", "../../images/iconGraph.gif");
			wef1.setText("Estadísticas sobre "+nom_estadis+".");
			window.dhx_globalImgPath = "codebase/imgs/"; = "dhx_skyblue";
			 pieChart2 = dhxWinsEF.window("wef1").attachChart({
				view: "pie",
				value: "#sales#",
				pieInnerText: "#sales#",
				gradient: true,
				details: {
					width: 75,
					align: "right",
					valign: top,
					marker: {
						type: "round",
						width: 15
					template: "#year#"
			pieChart2.parse(data, "json");

I update all to the version 2.6 and it´s work.

Thank you!

Sorry, but I has another problem.

In Firefox works fine but in IE8 no.

The error is:

Mensaje: No se pudo completar la operación debido un error 80020101.
Línea: 6
Carácter: 387
Código: 0
URI: codebase/dhtmlxchart.js

Try to move init of chart ( or other component ) in onload handler. Such error can occur in IE, if dynamic content created while body is still not fully rendered.