Sign in to follow this  
abdfahim

No Loading text

Recommended Posts

Hi,

 

I am using javascript to render chart on my webpage. Initially the chart shows a text "No data to display". When I click a button, it loads data and show graph.

 

My problem is, based on data volume, sometimes chart takes a while to load. But I don't see any message in between. It just keep showing "No data to display" and then suddenly show chart.

 

I want to show "retrieving data ..." or "loading chart ..." type message between button clicked and show chart to let the user know that something is going on in the background.

 

I did it before, but can't find the option in new documentation. Can you please help me?

 

My code:

var strURL = "xml/dynamic.php?id=xxxxxx"strURL = escape(strURL);
var myChart = FusionCharts(chartid);
myChart.setXMLUrl(strURL);

Thanks,

Share this post


Link to post
Share on other sites

Hi,

 

The usual reasons for “No data to display” message is either XML/JSON data doesn’t contain any data to be plotted on the chart. Your XML just contains the <chart></chart> without any data or for JSON just contains {“chart” : { } }.

 

Could you please check your code if FusionChart component is created before the onclick() function of the button used.

 

You can also send the code, so that we can check it at our end as well.

Thanks

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