Start by creating a new folder for your project. Within that folder, I recommend creating a sub-folder called d3. Then download the latest version of d3.v3.jsinto that sub-folder. As of this writing, the current version of D3 is 3.4.2.
Creating Project Folder
Creating the project folder and html file(index.html) within this project folder. Project folder structure like this: