结合SVG, 下面的代码演示了最简单的动画效果
<html>
<head>
<title>D3的最基本动画效果</title>
<script src='/d3/d3.min.js'></script>
<style>
</style>
</head>
<body>
<div id="infovizDiv">
<svg style="width:500px;height:500px;border:1px lightgray solid;">
</svg>
</div>
</body>
</html>
<script type="text/javascript">
d3.select("svg")
.append("circle")
.attr("r", 20)
.attr("cx", 20)
.attr("cy", 20)
.style("fill", "red");
d3.select("svg")
.append("text")
.attr("id", "a")
.attr("x", 20)
.attr("y", 20)
.style("opacity", 0)
.text("HELLO WORLD");
d3.select("svg")
.append("circl