d3 bar graph from memory