add d3 directive graph