javascript - Simplest D3.js example not working -


i have in index.html file not show paragraph want add d3

<!doctype html> <html>   <head>     <title> d3 page template </title>     <script type="text/javascript" src = "d3/d3.v3.js"></script>    </head>    <body>     <script type="text/javascript">         d3.select("body").append("p").text("new paragraph!");     </script>   </body> </html> 

the path referencing d3.js should correct because if inspect element in browser can click on d3 link , takes me source code.

enter image description here

you missing character set in html page. add this:

<meta charset="utf-8"> 

the un-minified source of d3 includes actual symbol pi, confuses browser if character set not defined.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -