0
What is this??? (D3.js)
I don't know what is mean this sentence (XMLHttpRequest cannot load [file:///C:/Bitnami/wampstack-5.6.31-0/apache2/htdocs/map/world.json.] Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.)
5 Respuestas
+ 1
you are trying to link a d3.js library right? but the link you are using is not a CDN..
i am using one d3.js i can share with you
0
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
0
It looks like your code is making a Jason API call to "file:///C:/Bitnami/wampstack-5.6.31-0/apache2/htdocs/map/world.json.]" However it cannot teach this address.
0
The .JS file extention indicates that it is a file.
0
you can't open HTML locally without web server. If you would load a file with D3 locally you can use a simple python web server or mamp.
I you have python install you can use terminal or CMD to launch a web server.
go into your folder and type
python -m SimpleHTTPServer
open your browser and go to 0.0.0.0:8000