Added events on d3 example