Can anyone recomend me a way so set up a d3 envierment for the d3 projects
Sure. In increasing order of difficulty:
- Edit a html file and add a script tag pointing at D3 on a content delivery network. Searching CDNjs for D3 will give you the appropriate tag.
- Set up a local node project and install D3 via npm and either link to the local copy as in #2 or get really creative and use webpack and babel to build a distributable file that includes D3.
Most people should do #1 (or maybe #2 if you want to work locally).
import d3.js from “https://cdn.skypack.dev/d3”