Sign in to follow this  
Guest Basundhara Ghosal

FC_NoDataToDisplay is not fired

Recommended Posts

hi,

 


First Chart Container





 

 

 

why function FC_NoDataToDisplay can't be invoked?function FC_Loaded() work well ,but getXML() can't work?

 

thanks for your answer!!!

Share this post


Link to post
Share on other sites

thanks, but i have do this:

 

set registerWithJS flag of the chart to 1

 

var myChart1 = new FusionCharts("swf/Column2D.swf", "myChartId", "600", "350","0","1");

 

 

 

FC_NoDataToDisplay is still not invoked

 

 

 

getXML() show error:object can not support this attribute or method

 

 

 

thank!

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Could you please send us the code that you are using for firing the events?

Awaiting your reply. :hehe:

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Could you please send us the screen-shot and the sample of the code that you are using as an attachment?

Also, could you please let us know, which programming language you are using for the same?

Awaiting your reply. :hehe:

Share this post


Link to post
Share on other sites

please unzip, then run testData.html, you shoul see the result.

 

i should want it invoke FC_NoDataToDisplay(), but it doesn't.

 

i should get chart's xml, but when i push the button,

 

1) my ie browser show a dialog(as errorImg.jpg in attachment), it tell me :alert(chartObj.getXML()); this line is error, chartObj does not support the attribute or method.

 

2)firefox is Unresponsive and not show error info yet

 

i just use code is chinese, now i change it into english,but problem is still exsit.

fusion.zip

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Could you please re-check the root paths for the SWF that you are using in your HTML page?

Also, please take a look into the codes below:-

Ref.- <SCRIPT LANGUAGE="Javascript" SRC="../../FusionCharts/FusionCharts.js"></SCRIPT>

 <SCRIPT LANGUAGE="JavaScript">

function getChartXML(){

 //Get chart from its ID

 var chartToPrint = getChartFromId("chart1Id");

 alert(chartToPrint.getXML());

}

</SCRIPT>

For further details on the same, please refer to the link below :-

Ref.- http://www.fusioncharts.com/docs?/JS_getXML.html

In case you wish to display the chineese charecters , please save your XML file in UTF-8 encode format.

Ref.- http://www.fusioncharts.com/docs?/SpChar.html

Hope this helps. :D

Share this post


Link to post
Share on other sites

Thanks again!

 

FusionCharts.js 's path and swf 's path are correct.

 

 

 

I found that the file in demo can't see effect, can't get xml content yet.

 

FusionCharts_EvaluationCodeJavaScriptBasicsGetXML.html

 

 

 

I do not know where the problem lies in...

 

 

 

oh, could you send me a full example? can invoke function FC_NoDataToDisplay() and can get xml content?

 

I know that my request was too much, but Please look at the surface of my desperate, please help me ,Most grateful!!!

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

You are using FusionCharts v 3.0.3 .

Please upgrade your version of FusionCharts from the link below:

http://www.fusioncharts.com/puc/

After upgrading your codes will work.

The FC_DataLoad event was not present before 3.0.7. Hence, the getXML and NoDataToDisplay functions were not working.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Thank you for your appreciation.

Glad that your issue is resolved.

Happy FusionCharting. :D

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