You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of 1.0.6, requesting a relative URL no longer seems to work correctly. At least this is the case when building with Browserify...
For example, if I'm hosting a dev site at: http://mydevsite:8888 and try something like d3.csv('/data.csv') a request will be made to http://localhost/data.csv instead of http://mydevsite:8888/data.csv'.
As of 1.0.6, requesting a relative URL no longer seems to work correctly. At least this is the case when building with Browserify...
For example, if I'm hosting a dev site at:
http://mydevsite:8888
and try something liked3.csv('/data.csv')
a request will be made tohttp://localhost/data.csv
instead ofhttp://mydevsite:8888/data.csv'
.Steps to reproduce:
npm install -g browserify
index.html
file:index.js
file:Create a sample
test.csv
filenpm install d3-request@1.0.5
browserify index.js -o generated.js
python -m SimpleHTTPServer 8888
Open up in a browser (use
http://127.0.0.1:8888
) and verify that the csv file is properly requested athttp://127.0.0.1:8888/test.csv
Next:
npm install d3-request@1.0.6
and repeat steps 6-8See that the the requested path is:
http://localhost/test.csv
The text was updated successfully, but these errors were encountered: