Skip to content

Instantly share code, notes, and snippets.

@scameron
Created March 29, 2012 22:03
Show Gist options
  • Save scameron/2244197 to your computer and use it in GitHub Desktop.
Save scameron/2244197 to your computer and use it in GitHub Desktop.
D3 transitions bug with new Chrome version.
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>bar</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<style type="text/css">
table td {
border: 1px solid #BBB;
}
</style>
</head>
<body>
<table>
<tr>
<td></td>
</tr>
</table>
<script type="text/javascript">
d3.select("td")
.append("svg")
.attr("width", "640")
.attr("height", "320")
.style("width", "1px")
.style("height", "1px")
.transition().duration(3000)
.style("width", "640px")
.style("height", "320px");
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment