520320 (1) [Avatar] Offline
#1
Hi Curran

trying your examples from chap.1 2 i realized that they would not work if i reorganize a code like:

<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="https://d3js.org/d3.v4.min.js"></script>

<script>
...
your d3.js example
....
</script>
/head>

<body>
<svg width="960" height="500"></svg>
....

in a real life it's quite important to keep js part separated and not under svg tag in html body
how to do it? i thing it belongs to a core

regards
j