d3 newbie updates a bar chart