Hello,
Hope someone can help.
Here’s my code sample :
[code]// Chart Config
var configChart = {
view:“bar”,
color:“#66ccff”,
gradient:“3d”,
//container:“chart_container”,
value:“#data3#”, // AMOUNT2
label:“#data3#”, // AMOUNT2
radius:3,
width:50,
origin:0,
yAxis:{
start:0,
step:1000,
end:3000
},
xAxis:{
template:“#data0#” // Day of the Week
},
border:false
}
// Chart initialisation
myChart = myRightLayout.attachChart(configChart);
// My Grid
var myGrid= myLeftLayout.attachGrid();
myGrid.setIconsPath(‘includes/js/dx/imgs/’);
myGrid.setColTypes(“ro,ro,ron,ron,ron,ron”);
myGrid.loadXML(“data/mydatas.php?action=getxml&etc=”+ new Date().getTime(), refresh_chart);
// mydata.php returns some xml data (see below)
function refresh_chart(){
myChart.clearAll();
myChart.parse(myGrid, “dhtmlxgrid”); // dhtmlgrid or xml ???
}
// the xml
<?xml version="1.0" encoding="UTF-8"?> DAY DATE AMOUNT1 AMOUNT2 AMOUNT4 AMOUNT5 px ven 02/11/2012 1200.00 1435.20 235.20 2.5 mer 31/10/2012 1200.00 1435.20 235.20 3 mar 30/10/2012 600.00 717.60 117.60 3 lun 29/10/2012 420.00 502.32 82.32 2.10 [/code]I guess #data0# is my 1st column, #data1# my 2nd…
The chart still appears without any values… (only with X and Y axis)
Firebug says : “TypeError: data.documentElement is undefined”
Thanks for you help