maligangadhar Report post Posted March 25, 2011 Hi, 1.I need to do some events after chart has rendered. Tried with the following but not working : FusionCharts("myChartId").addEventListener ("DrawComplete" , myChartListener ); function myChartListener(event, parameter) { alert( event.sender.id + " has completed chart drawing" ); } 2. How can i render multiple charts silustaneosly ( need to load 5 charts .....at the same time) Regards Gangadhar Share this post Link to post Share on other sites
maligangadhar Report post Posted March 25, 2011 waiting for reply, please respond its very urgent.... Share this post Link to post Share on other sites
Guest Angie Report post Posted March 25, 2011 Hi, 1, Please find the attached code for your reference. 2. Please refer to the link: http://www.fusioncha...ipleCharts.html Hope this helps. DrawComplete.html Data.xml Share this post Link to post Share on other sites
maligangadhar Report post Posted March 25, 2011 thx for ur reply, iam using licence version of fusion charts: 1. i have used multiple domid for all charts, still some times it says no data found..... 2.FusionCharts.addEventListener ( FusionChartsEvents.DrawComplete, function () { alert("FusionCharts Draw Complete."); }); FusionChartsEvents is is missing from my fusioncharts.js......please send me fusioncharts.js file as well Thanks in advance Share this post Link to post Share on other sites
Guest Angie Report post Posted March 25, 2011 Hi, 1. Please make sure that each chart on the page should have a unique DOM-Id (which is specified in the JavaScript constructor). 2. Please find attached the latest FusionCharts.js file for your reference. JS.zip Share this post Link to post Share on other sites
maligangadhar Report post Posted March 25, 2011 hi, 1. i have used unique domId still it comes as no data found 2. after chart load event is not working (i have tested the code in your files as well it is not working......) can u plz test it locally and then share me the same... Share this post Link to post Share on other sites
Guest Angie Report post Posted March 25, 2011 Hi, 1, Could you please send us the code to look into the issue? 2. I am afraid, we are not able to replicate the issue, the code is working fine form our end. Please find the attached screenshot for your reference. Share this post Link to post Share on other sites
maligangadhar Report post Posted March 25, 2011 can u please guide me how to use FC_Rendered ... i have 5 charts in my page.....need t handle this event seperately for all the charts.... iam using some thing like: function FC_Rendered(DOMId){ //If it's our required map alert("inside"); if (DOMId=="myChartId44"){ //Simply alert window.alert("Look Ma! I am World Map and I've finished loading and rendering."); return; } } seems t be not working...... Share this post Link to post Share on other sites
maligangadhar Report post Posted March 25, 2011 iam keeping all the script code in sep js file..... my js looks like this... function invokeTrendProtocolRegister(protocolVal, apiVal, fromDateFinal, toDateFinal, fromTotal,toTotal,statusPage) { var urlAppend = "fromDate=" + fromDateFinal + "&toDate=" + toDateFinal + "&protocol=" + protocolVal+"&api="+apiVal+"&statusPage="+statusPage; var reportUrl = uri + "ProtocolTrendServlet?" + urlAppend; reportUrl = escape(reportUrl); var myChart = new FusionCharts("SWFcharts/MSLine.swf", "myChartId44","600", "350", "0", "0"); myChart.setDataURL(reportUrl); myChart.render("portal-REGISTER"); } } how do i need t call FC_Render on this.... Share this post Link to post Share on other sites
Ayan Pal Report post Posted March 28, 2011 Hi, Thanks for your post. In your "invokeTrendProtocolRegister" function all charts generated by the function get the id "myChartId44". please provide unique id for all the charts. Share this post Link to post Share on other sites