ChartFromXml - Acceptable values for Chart Xml Url

Oct 26, 2010 at 4:18 PM
Edited Oct 26, 2010 at 4:19 PM

We really like your charting solution - thanks.

We have had success in using FusionChartsFree version within a Content Editor web part. Here is the code that has been successful:

<div id="chartdiv" align="center">The chart will appear within this DIV. This text will be replaced by the chart.</div>

<script language="JavaScript" src="http://dotnet.dss.com/pisd/clpobjects/fcf/JSClass/FusionCharts.js"></script>
<script type="text/javascript">
     var chart = new FusionCharts("http://dotnet.dss.com/pisd/clpobjects/fcf/Charts/FCF_Column2D.swf", "ChartId", "600", "350");
     chart.setDataURL("http://dotnet.dss.com/pisd/clpobjects/MetricChart.asp?xurl="+window.location.pathname);  
     chart.render("chartdiv");
</script>

When trying to use your SP chart web parts, we are not having the same success. We have changed the parameter to xurl=site/page213 and the asp parses it fine from the browser but not within the web part. We have tried urlEncoding the url but that hasn't worked either.
We get "Error in Loading Data".
Odd thing is we take the url and paste it into our browser and copy the returned html and paste that for the Chart Xml Content value, the chart displays fine.

Can you offer any soultions?

Thanks

 

Nov 25, 2010 at 5:26 PM
Please help having the same problem - fusion chart will not load any XML using the "Chart Xml Url" field on the Sharepoint web part: Error message = "Error in Loading Data". The only time it works is if the XML file is hosted on the Sharepoint site itself. The exact same file cannot be loaded from any location outside of the Sharepoint site! (ex. file:///C:/test.xml doesn't work, http://... to any other site doesn't work..) 
Please help this is quite crucial.
Thanks