Hi,
I've tried the following code with no success.
The message error was "Invalid XML data"
var myChart = new FusionCharts("../Charts/Gantt.swf", "myChartId1", "600", "400", "0", "0");
dataXml =
"<chart dateFormat='mm/dd/yyyy' caption='Project Gantt'>" +
" <categories> " +
" <category start='02/01/2007' end='03/01/2007' label='Feb' /> " +
" <category start='03/01/2007' end='04/01/2007' label='Mar' /> " +
" </categories> " +
" <processes fontSize='12' isBold='1' align='right'> " +
" <process label='Identify Customers' /> " +
" <process label='Survey 50 Customers' /> " +
" </processes> " +
" <tasks> " +
" <task start='02/04/2007' end='02/10/2007' /> " +
" <task start='02/08/2007' end='02/19/2007' /> " +
" </tasks> " +
"</chart> "
myChart.setDataXML(dataXml);
myChart.render("chartdiv");
But, the following case is fine.
var myChart = new FusionCharts("../Charts/Gantt.swf", "myChartId1", "600", "400", "0", "0");
myChart.setDataURL("data.xml");
myChart.render("chartdiv");
File data.xml contains the following XML data (identical with the previous sample) :
<chart dateFormat='mm/dd/yyyy' caption='Project Gantt'>
<categories>
<category start='02/01/2007' end='03/01/2007' label='Feb' />
<category start='03/01/2007' end='04/01/2007' label='Mar' />
</categories>
<processes fontSize='12' isBold='1' align='right'>
<process label='Identify Customers' />
<process label='Survey 50 Customers' />
</processes>
<tasks>
<task start='02/04/2007' end='02/10/2007' />
<task start='02/08/2007' end='02/19/2007' />
</tasks>
</chart>
What's wrong with the first sample?
thanks in advance,
ahmad