Built with blockbuilder.org
xxxxxxxxxx
<head>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v4.min.js"></script>
<style>
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; }
</style>
</head>
<body>
<svg width=300 height=300><circle cx=120 cy=120 r=100 style="fill:red" /></svg>
<script>
var circle = d3.select("circle")
success();
function success() {
circle.attr("style", "fill:green");
}
</script>
</body>
https://d3js.org/d3.v4.min.js