Sign in to follow this  
LindaF

Using Jquery To Respond To Javascript Events

Recommended Posts

I am new to FusionCharts. We are using the javascript version, but I would like to write some jQuery to capture the DrawComplete event. It doesn't seem to be firing, so I think that might syntax is incorrect. Can anyone give me an idea of what's wrong here? See the code below. Thanks in advance for your help

 

$(document).ready(function () {

 

// alert($("#rootcontainer").html());

 

$("#MyChartContainer").bind("DrawComplete", function (eventObject, argumentsObject) {

 

alert("chart has been drawn");

 

});

 

});

 

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

Could you please try using "fusionchartsdrawcomplete" event here?

 

Ref. code:

 

$("#chartContainer").bind( "fusionchartsdrawcomplete", function (e, args) {

alert("chart has been drawn" );

});

 

For more information, read here: http://docs.fusionch...ery/Events.html

Share this post


Link to post
Share on other sites

Hi LindaF,

 

All JavaScript events for Charts are available to FusionCharts jQuery plugin.

 

You just need to add a prefix "fusioncharts" to the existing JavaScript event name. This is done to prevent conflict between names.

 

You can get the list of JavaScript event names from the JavaScript Events page.

 

All you would need to do is keep adding "fusioncharts" before the event names when referring to jQuery bind method.

 

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