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.