Sign in to follow this  
evanluck

Unexplainable No Data to Display Error

Recommended Posts

I get a "No Data to Display Error" with the following code

 






		var chart1 = new FusionCharts("charts/Pie3D.swf", "useageGraph", "464", "270", "0", "1");		

		chart1.setDataURL('phpgraph/profile_1.1_usage.php?segid=1&region=south');

		chart1.addParam("wmode","transparent");

		chart1.render("servusagetab");



 

 

 

When I go to the actual DataURL in a browser, I get valid XML output.

 

 

 

When I save this XML output to a static file and change the setDataURL to the XML file, the graph renders.

 

 

 

I've isolated the graph on it's own page here:

 

http://www.jcplcommunityconnect.com/fusionchartsbugtest.php

 

 

 

You can see that the DataURL is valid by going here:

 

http://www.jcplcommunityconnect.com/phpgraph/profile_1.1_usage.php?segid=1&region=segments

 

 

 

Any assistance would be most gratefully appreciated!

 

 

 

All the best,

 

 

 

Evan

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

If your chart shows a "No data to display" message, it could be the following scenarios:

  • Your XML data doesn't contain any data that could be plotted by FusionCharts. In this case, your XML just contains the <chart> or <dataset> tags without any data between them.
  • You might be using a single-series chart SWF and providing data in multi-series format or vice-versa. In this case too, you'll get "No data to display" message.
  • In some Dual Y Combination charts, you need to provide atleast one data-set for both the axis. Otherwise, you'll get a "No data to display" message.

Now, when i checked the link http://www.jcplcommunityconnect.com/phpgraph/profile_1.1_usage.php?segid=1

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
Sign in to follow this