Example of using d3 and angular to draw graphs