There are a variety of ways to download and use D3.
<script type="text/javascript" src="scripts/d3/d3.js"></script>npm initnpm install --save d3<script type="text/javascript" src="node_modules/d3/build/d3.js"></script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.1.1/d3.js"></script><script type="text/javascript" src="https://raw.githubusercontent.com/d3/d3/v3.5.16/d3.js"></script>To link directly to the latest release, copy this snippet:
<script src="https://d3js.org/d3.v4.min.js"></script>