Sign in to follow this  
Bret K. Ikehara

Addeventlistener Not Working For Exported Event

Recommended Posts

Fusion Charts Version: 3.2.2

Replicable: Always

 

Problem:

I am having problems listening to the Exported event using the advanced event model. Other events such as DrawComplete works perfectly, but Exported event does not fire.

 

Defining the functions FC_Exported works fine, but that is not what I want.

 

When I was looking through the FusionCharts.js, I noticed there existed references to the other events such as "DrawComplete" within the JavaScript code, but the "Exported" string did not appear.

 

Example code:

<pre>

var chart = new FusionCharts(chartObj);

chart.setDataURL("data.xml");

chart.render("graph");

chart.addEventListener("DrawComplete", function (e, args) {

FusionCharts(o.id).exportChart( { "exportFormat" : "PNG" } );

});

 

// Does not work.

chart.addEventListener("Exported", function (e, args) {

alert("fired " + e.eventType + " for " + e.sender.id);

});

 

// Works perfectly.

function FC_Exported(o) {

alert(o.DOMId);

}

</pre>

Share this post


Link to post
Share on other sites

var chart = new FusionCharts(chartObj);
chart.setDataURL("data.xml");
chart.render("graph");
chart.addEventListener("DrawComplete", function (e, args) {
 FusionCharts(o.id).exportChart( { "exportFormat" : "PNG" } );
});

// Does not work.
chart.addEventListener("Exported", function (e, args) {
 alert("fired " + e.eventType + " for " + e.sender.id);
});

// Works perfectly.
function FC_Exported(o) {
 alert(o.DOMId);
}

 

Is anyone else having this problem? Should this be moved to the bug reports subforum?

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