Copy over from d3Simple