Transforming a circle into a rect.
Transitioning the rx and ry properties of a rect is easier than this, but something the flexibility of path element is worth the hassle.
xxxxxxxxxx
<meta charset='utf-8'>
<link rel="stylesheet" type="text/css" href="style.css">
<body></body>
<script src='d3v4.js'></script>
<script src='lodash.js'></script>
<script src='script.js'></script>