ben yapmış olduğun downloaded D3.js from d3js.org (zip dosyasına link), bu unzipped ve aşağıdaki HTML sayfası olarak başvurulan:D3.js: "Yakalanmamış SyntaxError: Beklenmeyen belirteç ILLEGAL"?
<html>
<head>
<title>D3 Sandbox</title>
<style>
</head>
<body>
<script src="/d3.v3.js"></script>
</body>
</html>
Ama bu sayfayı yüklediğinizde, (Chrome'da) benim konsol beni bu veriyor hata:
Uncaught SyntaxError: Unexpected token ILLEGAL: line 2
pi and e symbols at the start of the file'dan hoşlanmaz. Errrr ... bu konuda ne yapabilirim? Dosyayı python'un SimpleHTTPServer ile sunuyorum.
Güncelleme: evet Biliyorum bir CDN sürümüne bağlanabiliyorum, ancak dosyayı yerel olarak sunmayı tercih ederim.
benim için sorun, basithttpserver varsayılan başına utf8 desteklemiyordu: http://stackoverflow.com/questions/15288891/how-can-i-serve-files-with-utf-8-encoding-using- python-simplehttpserver – lewurm