adding .addGraph to d3 recipe