A simple d3.js example. Click to add circles to the SVG.
xxxxxxxxxx
<html>
<head>
<meta charset="utf-8">
<title>Graph editor</title>
<link type="text/css" href="index.css" rel="stylesheet"/>
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="index.js"></script>
</head>
<body onload="main()">
<svg width="960" height="500">
</svg>
</body>
</html>
Modified http://d3js.org/d3.v3.min.js to a secure url
https://d3js.org/d3.v3.min.js