I have a project that uses the latest version of d3 (v6), I include the api as follows in my index.html: