pass json array to d3, graph and text both work