Refining d3 representation