javascript - How do I import the D3 library into my project file structure? -


i trying not rely on basic code follows in file:

<script src="//d3js.org/d3.v3.min.js"></script> 

i trying include d3 library in file structure. have created "libs" file in project. here link page download d3 library: https://github.com/d3/d3 question after downloading necessary files github, create d3 folder in libs folder , place files there? if so, reference specific file or folder?

there few different ways of importing other people's code. could, suggested, download latest release , copy d3.js or d3.min.js lib/ directory, import so:

<script src="lib/d3.min.js"></script> 

alternatively, if you're using package manager npm or bower, install using that, recommended in readme. there's resource showing how use bundler rollup package d3 of other libraries.


Comments

Popular posts from this blog

Lists in Python -

android - can not access to progress bar in an other activity -

java - Vaadin 7 Pass Data Between Views -