Bret K. Ikehara

Members
  • Content count

    2
  • Joined

  • Last visited

About Bret K. Ikehara

  • Rank
    Forum Newbie
  1. Addeventlistener Not Working For Exported Event

    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?
  2. 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>