d3.js graph directive now updating