Skip to content

Commit

Permalink
Bring transform example up-to-date
Browse files Browse the repository at this point in the history
  • Loading branch information
kitmonisit committed Apr 7, 2012
1 parent 2fc903b commit c5465ca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/transform/transform.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
<body>
<script type="text/javascript">

var w = 960,
h = 500,
var width = 960,
height = 500,
z = 20,
x = w / z,
y = h / z;
x = width / z,
y = height / z;

var svg = d3.select("body").append("svg")
.attr("width", w)
.attr("height", h);
.attr("width", width)
.attr("height", height);

svg.selectAll("rect")
.data(d3.range(x * y))
Expand Down

0 comments on commit c5465ca

Please sign in to comment.