bound model to d3 for drawing