dhtmlx.ui.Map is not a constructor error on chart parse

When I try to parse data to add chart I get the error:

dhtmlx.ui.Map is not a constructor error on chart parse on dhtmlx.js line 334

I´ve tried different charts with different data and loading by json, xml, and jsarray and result is always the same.

Here is my code:

var chart_data = [[“10808.5799865723”, “ENE”], [“8408.07998657227”, “FEB”], [“5182.07998657227”, “MAR”], [“6542.07998657227”, “ABR”], [“5332.07998657227”, “MAY”], [“5106.07998657227”, “JUN”], [“4622.07998657227”, “JUL”], [“5084.3099861145”, “AGO”], [“5077.07998657227”, “SEP”], [“4497.07998657227”, “OCT”], [“2960”, “NOV”], [“2860”, “DIC”]];

chart = lytEstadisticas.cells(“c”).attachChart({
view: “line”,
value: “#data0#”,
label: “#data0#”,
item:{
borderColor: “#3399ff”,
color: “#ffffff
},
line:{
color:“#3399ff”,
width:3
},
yAxis:{
start:0,
end: 10000,
step: 1000,
title: “Euros”
},
xAxis:{
title: “Año: 2011”,
template:“#data1#”
}
});
chart.parse(chart_data, “jsarray”);

Thank you in adavance.

Apparently the compiled dhtmlx.js is missing something. I copied the dhtmlxChart.js and dhtmlxChart.css and included them after dhtmlx.js and dhtmlx.css, and everything started working correctly. Also I would like to note that my libCompiler is not working. Is there any special configuration needed? I’m working with xampp 1.7.4

Hi,

what dhtmlxChart.js are you using ? You do not need to include it if dhtmlx.js with all libraries is included.

Also I would like to note that my libCompiler is not working.

Try to replace the libCompiler/images.php with the attached file.
images.zip (2.88 KB)

Hi Alexandra,

I’m using dhtmlxChart 3.0, included in dhtmlx.js because I’m working with many components. I will try your download and let you know if it solved the problem.

Thank you very much.

Hi,

Its still not working. Im using xampp 1.7.4. Is there any special configuration needed?

Thanks in advance.

Hi,

Im using xampp 1.7.4. Is there any special configuration needed?

Please check memory_limit in the php.ini Possibly it should be increased. For example:
memory_limit = 128M

Regarding chart issue - we have tested you code with the dhtmlxSuite/dhtmlx_std_full/dhtmlx.js and the dhtmlxSuite/dhtmlx_std_full/dhtmlx.css. Teh chart is correctly rendered.

I tried your solution, increased memory limit to 2056M, but the issue still remains.

I tried compiling all components individually and in groups and everything is fine, until I try to include Layout or Windows. Every time I include these two components by themselves or with any other component I get the next error:

The connection was reset
The connection to the server was reset while the page was loading.

The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer’s network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

We can not reproduce the problem locally. It requires the detailed investigation. So, please open the ticket in the Members’ Support.

Could you post the latest build to discard that is due to an old version I may have downloaded?

Thank you for all your help.

The latest Suite can be downloaded here:

dhtmlx.com/docs/download.shtml