This element import the last version of d3 and load the script. As HTML import are resolved only once, d3 is loaded once.
Element dependencies are managed via Bower. You can install that via:
npm install -g bower
Then, go ahead and download the element's dependencies:
bower install
If you wish to work on your element in isolation, we recommend that you use Polyserve to keep your element's bower dependencies in line. You can install it via:
npm install -g polyserve
And you can run it via:
polyserve
Once running, you can preview your element at
http://localhost:8080/components/wid-d3-import/
, where wid-d3-import
is the name of the directory containing it.