Note that the D3 library is already included within Canvas.
The above is an Angular library built on top of a d3 chart.
And regarding the last line about adding an angular module, you should be able to add that via the index.ftl file. There is a section in there that looks like below:
Also do take note that the version of d3 that we have in Canvas is 3.5.17.