Basic d3 plotting improved