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.)

22nd Aug 2017, 2:32 PM
bong4477
bong4477 - avatar
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
22nd Aug 2017, 2:42 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
22nd Aug 2017, 2:43 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
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.
22nd Aug 2017, 3:31 PM
josh mizzi
josh mizzi - avatar
0
The .JS file extention indicates that it is a file.
22nd Aug 2017, 3:33 PM
josh mizzi
josh mizzi - avatar
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
7th Dec 2017, 11:13 PM
Nilo
Nilo - avatar