ItalFreak

Other way to change chart messages possible ?

Recommended Posts

Since I want the app to run even off line, I'm using Google Gears and Javascript for FusionCharts.

 

 

 

Now the chart appears empty with the text "No data to display" and I want to change that to something like "Please use Load Data Button to display chart" and use the following syntax:

 

 

 

var chart1 = new FusionCharts("Column2D.swf?ChartNoDataText=Please use Load Data Button to display chart", "ChId1", "300", "250", "0", "0");

 

 

 

This works fine but when using the locally stored Google Gears version of the website the file Column2D.swf is not found until I remove the "?ChartNoDataText=Plea....." part again.

 

 

 

So can I submit this parameter another way as well, maybe something like this for the empty chart:

 

"chart1.setDataXML("

Share this post


Link to post
Share on other sites
Sudipto Choudhury (4/10/2009)
Hi,

 

Could you please use:

 

 

 

chart1.addParam("ChartNoDataText","Your text here");

 

 

 

 

 

 

Hi Sudipto,

 

 

 

It looks like it works but it does not...

 

The param is added succesfully but does not change the ChartNoDataText. (see yellow text in screenprint)

 

Still showing the default "No data to dislpay" (see top of screenprint)

 

Please see attached screenprint from FireBug. By the way this is online, Not using Google Gears !

 

 

 

chartnodatatext.png

 

 

 

Anything else I should look at ?

 

 

 

Thanks, Jean

Edited by Guest

Share this post


Link to post
Share on other sites
Sudipto Choudhury (4/14/2009)
Hi,

 

I apologize for the typo.

 

This would be:

 

 

 

chart1.addVariable("ChartNoDataText","Your text here");

 

 

 

 

Great, that solved it !

 

It works fine now.

 

 

 

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