Sign in to follow this  
David Song

How To Add Event Listener To Chart Before It Is Rendered?

Recommended Posts


I see the code in doc like below,

var myChart = new FusionCharts( "FusionCharts/Column3D.swf", "myChartId", "400", "300", "0", "1" );
function myChartListener(eventObject, argumentsObject) {
       alert( + " has completed chart drawing" );
FusionCharts("myChartId").addEventListener ("DrawComplete" , myChartListener );

the event is added after the chart rendered, i want to decide if the data loaded then the chart begins to render, or how to know fusionchart object is insanced or not?




Share this post

Link to post
Share on other sites
Guest Sumedh

Hi David,


Welcome to FusionCharts Forum!


If you want to perform some operation before rendering the chart, then you can use initialized event.


Each event sends parameters to event listener functions.


"Initialized" event is raised when an instance of FusionCharts JavaScript class is initialized. This happens prior to data loading and chart creation events.


For more information, please refer the following link:


Hope this helps!

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