Sign in to follow this  
wojwal

Chart Messages

Recommended Posts

Hi!

 

 

 

Regarding your Documentation I can change ChartNoDataText like this:

 

 

 

var chart1 = new FusionCharts("Column2D.swf?ChartNoDataText=Please select a record above", "ChId1", "300", "250", "0", "0");

 

 

 

and then invoke chart with empty data:

 

 

 

chart1.setDataXML("");

 

 

 

----------------

 

 

 

I am using this solution. I am downloading XML's via AJAX - and then set chart via setDataXML. Everythink is fine - but I need to change this message via Javascript. Is it possible?

 

 

 

Following situation:

 

 

 

1. I set ChartNoDataText = "Loading data" and invoke empty chart

 

2. I download XML Via AJAX, do additional things with XML with Javascript - and invoke chart with it

 

3. What if XML file is empty - I need to change ChartNoDataText message back into "No data to display" again.

 

 

 

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