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>