Shawn H

Flash Charts Not Working Correcty When Passing Xml Data

Recommended Posts

OK I'm going to be honest here. I am really getting upset about this product. We have just recently upgraded to the new XT and it's buggy as hell.

 

I have already posted one problem without a solution so here's another one for you guys.

 

Here's is some really simple code that does NOT work.

 


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">



<head>
   	<script type="text/javascript" src="/static/common/fusioncharts/Charts/FusionCharts.js"></script>
</head>

<body>

<div id="chart_div"></div>



<script type="text/javascript">

	//FusionCharts.setCurrentRenderer('javascript');

	var myxml = "<chart><set label='Some Label' value='10' /></chart>";

	var chart = new FusionCharts("/static/common/fusioncharts/Charts/Column2D.swf","FCChart1","310", "190", "0", "1");
	chart.setDataXML( myxml );
	chart.render( "chart_div");

</script>


</body>
</html>


 

What happens is that the chart will load and then the Flash chart decides to go and do a request for Data.xml. I gave it XML. It doesn't need to go out and call for Data.xml because that URL doesn't exist.

 

The above code works fine when I set the renderer to Javascript.

Share this post


Link to post
Share on other sites
Guest Sumedh

Greetings. smile.gif

 

I am afraid, I could not replicate the issue.

 

setDataXML () function is working fine at our end.

 

All the features, functions of FusionCharts XT v3.2.2 are backward compatible with earlier versions.

 

Chart is rendering fine with the code you have provided.

 

Please find attached screenshot for your reference.

 

Hope this helps. smile.gif

post-24802-0-38289300-1329204653_thumb.jpg

Share this post


Link to post
Share on other sites

Thanks for the reply and checking my problem out. I'm not sure what happened but all is working now. Even some other problems I was having yesterday with the charts are working correctly now.

 

Possibly some caching issue on my end. Not sure.

 

Anyways thanks for the help!

 

Greetings. smile.gif

 

I am afraid, I could not replicate the issue.

 

setDataXML () function is working fine at our end.

 

All the features, functions of FusionCharts XT v3.2.2 are backward compatible with earlier versions.

 

Chart is rendering fine with the code you have provided.

 

Please find attached screenshot for your reference.

 

Hope this helps. smile.gif

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now