import d3 in js file code example Example: include d3 <script src="https://d3js.org/d3.v5.min.js"></script>