|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 9/13/2007 1:35:37 AM
Posts: 2,
Visits: 7
|
|
Hi,
I am trying to render Gantt Chart using the setDataXML method. I am streaming the chart Xml from the server and on the browser setting the text to the setDataXML method and then rendering the chart to a DIV. But i am getting an "Invalid xml data" message. Heres the xml being sent from the server side.
var chartXML =;
var myChart = new FusionCharts("D:/FusionCharts_Evaluation/Charts/Gantt.swf", "myChartId", "500", "250", "0", "0");
myChart.setDataXML(chartXML);
myChart.render("chartdiv");
But if i save the xml to a file and set the file path to the setDataURL method, the rendering is fine. 
Any help would be appreciated, Thanks
PS: I have attached the xml being sent in the xml attachment.
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: 2 days ago @ 7:57:52 PM
Posts: 1,956,
Visits: 468
|
|
You might be having special characters or combination of ' and ". If you have those, you'll necessarily need to use dataURL method.
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 9/13/2007 1:35:37 AM
Posts: 2,
Visits: 7
|
|
| i have attached the xml that is being built on the server. I have checked the xml and it does not have any combination of &apos and ".
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: 2 days ago @ 7:57:52 PM
Posts: 1,956,
Visits: 468
|
|
Yes - you've % in your XML. Please encode them to %25 when using dataXML method. In dataURL method, you can directly use them.
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|