Built with blockbuilder.org
xxxxxxxxxx
<html>
<head>
<meta charset="utf-8">
<title>D3 Example</title>
<script src="https://gist.github.com/victorkausch/da13ffa47fdb1bab34a3d550590b98cf.js"></script>
</head>
<style>
circle{fill: #40E0D0}
</style>
<body>
<script>
var svg = d3.select("body").append("svg")
.attr("width", 250)
.attr("height", 250);
function a_name (d){
// Bind data
var circles = svg.selectAll("circle").data(d);
// Enter
circles.enter().append("circle")
.attr("r", 15);
// Update
circles
.attr("cx", function (d){ return d.x; })
.attr("cy", function (d){ return d.y; });
// Exit
circles.exit().remove();
}
d3.csv("https://gist.github.com/victorkausch/da13ffa47fdb1bab34a3d550590b98cf",
function (d){a_name(d);});
</script>
</body>
</html>
https://gist.github.com/victorkausch/da13ffa47fdb1bab34a3d550590b98cf.js