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

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -