d3 object is defined