Sign in to follow this  
maligangadhar

Handle Chart Render Event

Recommended Posts

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

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

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

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

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.

post-10517-059211800 1301036816_thumb.jpg

Share this post


Link to post
Share on other sites

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

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

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

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