Hello, I am using d3.v7.min.js, I have downloaded it from http://d3js.org/d3.v7.min.js and put the file to a http server,
and also I write a html file to use this js file, I tried 2 ways to view the page:
1) view the page locally, there is no error, it works totally as expected;
2) view the page by remote, the browser reports “Uncaught ReferenceError: d3 is not defined”, I confirm via F12 that d3.v7.min.js is downloaded successfully by web browser.
I have tried to use Firefox and Chrome, error exists at both of them.
key codes are as below: <script src="../../../js/d3.v7.min.js" charset="utf-8"></script> <script > d3.select("body"); </script> About the cause of error "d3 is not defined", you may share your opinion if you met the similar issue. Thanks a lot.