A simple pack layout transition
xxxxxxxxxx
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Circle Packing Transition</title>
<script type="text/javascript" src="https://d3js.org/d3.v2.js"></script>
<style>
circle {
fill: none;0
stroke: none;
}
circle.leaf {
fill: rgba(31, 119, 180, 0.7);
stroke: rgb(31, 119, 180);
stroke-width: 2px;
fill-opacity: 1;
}
text {
fill: #fff;
font: bold 10px sans-serif;
}
</style>
</head>
<body>
<div id="chart"></div>
<script type="text/javascript" src="challenge.js"></script>
</body>
</html>
Modified http://d3js.org/d3.v2.js to a secure url
https://d3js.org/d3.v2.js