Is there any global listeners we can add for d3.xhr calls like what we have in ExtJS. Ext.Ajax.on("beforerequest", function(conn, options, eOpts){)};
I tried using 'on' as specified in https://github.com/mbostock/d3/wiki/Requests#on
while trying
d3.xhr.on("beforesend", function(request){
console.log("inside on");
});
I am getting following error. Uncaught TypeError: d3.xhr.on is not a function
while trying below code
d3.xhr(url, callback).on("beforesend", function(request){
console.log("inside on");
});
following error is thrown. Uncaught TypeError: Cannot read property 'on' of undefined
Do I have to do anything special to enable the listeners ?
Thanks in advance.