The d3.dispatch function from d3