Hi all,
I cant seem to get the pie-chart to work. I try to load the values for the piechart from a php page, which contains a mysql query which returns two values (id, environment (dev,dev2,etc). I set up the chart as following:
[code]var main_layout = new dhtmlXLayoutObject(document.body, ‘1C’);
var a = main_layout.cells('a');
var chart_1 = a.attachChart({
view: 'pie3D' ,
legend:{"marker":{"type":"round","width":15},
"values":[{"text":"Dev","color":"#3399ff"},
{"text":"Dev2","color":"#66cc00", "markerType":"item"}]},
gradient: false,
});
chart_1.load("../data/DLconnector.php", "xml");[/code]
For some reason i only see the ‘legend’. The piechart itself is not loaded. Am i missing something? I did include the codebase/dhtmlx.js file.
Thanks in advance.
Regards,
Bakk