hye,
im trying to load graph dynamiclly with javascript xmldocument object
this is my code :
<head>
<xml id="xmlPie" src="XML/DataPie.xml"></xml>
</head>
<script>
var myChart = new FusionCharts("../../Assets/GuiObjectsV2/FusionCharts/Charts/Pie3D.swf", "myChartId", "205", "150", "1", "0");
var a = xmlPie.xml;
myChart.setDataXML(a);
</script>
inisde xmlPie.xml there is this xml:
<chart caption="Monthly Sales Summary" subcaption="For the year 2006" xAxisName="Month" yAxisName="Sales" numberPrefix="$"><set label="January" value="17400" /><set label="February" value="19800" /><set label="March" value="21800" /><set label="April" value="23800" /><set label="May" value="29600" /><set label="June" value="27600" /><set label="July" value="31800" /><set label="August" value="39700" /><set label="September" value="37800" /><set label="October" value="21900" /><set label="November" value="32900" /><set label="December" value="39800" /></chart>
and i get the error (from the debugger):
INFO: XML Data provided using dataXML method.
ERROR: Invalid XML encountered. An XML element is malformed. Click the above "dataURL Invoked" link to see the XML in browser Or check the XML data provided.
hope you can help me, im stuck.
erez.